Ask AI

Using AI Agent with RAG

Connect AI Agent to RAG Search to build smart, document-aware automation flows.

Notion image

Working with AI Agent

Example scenario with an AI Agent using RAG Search as a tool:

Notion image

Prompt Configuration for Agent

The agent is configured with a system prompt instructing it to use the RAG Search tool when the user asks for documentation-related information:

Notion image

RAG Search Tool Setup

The RAG Search node is connected to the agent using fromAIAgent(). A storage is selected, top_k is set, and the tool description helps the model understand its capabilities.


Notion image

End-to-End Example

  1. The user sends a question to the agent
  1. The agent uses RAG Search to retrieve relevant chunks
    1. Notion image
  1. The agent composes and returns a final response
    1. Notion image
 

Did this answer your question?
😞
😐
🤩