A Knowledge Base is an essential resource that stores and organizes information your AI Agent needs to provide contextually relevant answers during conversations. It allows the agent to access and reference structured data, documents, and information sources without overwhelming the prompts with excessive detail.The ability to link a Knowledge Base to an AI Agent enables dynamic, real-time responses, boosting both efficiency and accuracy during customer interactions.
Navigate to the Knowledge Base Section: In the AI Studio, go to the Knowledge section.
Click “Create Knowledge Base”: Assign a name to the Knowledge Base and select your source(s).
Link to Agent: You can link the Knowledge Base to an agent at the time of its creation or later through the Agent Builder interface.
Multiple Agent Link: A single Knowledge Base can be linked to multiple agents. Once the Knowledge Base is created, you can update it at any time by adding or removing sources.Note: You can update the Knowledge Base later by adding or removing sources.
To sync content, you’ll need to configure the integration first. You can do this by going to Settings → Integrations, authenticate the app, and then pull the data.Important: App integrations must be set up before syncing content from apps. Learn more about Integrations.
Once a Knowledge Base is linked to an agent, the agent automatically searches the knowledge base to provide relevant responses. Here’s how it works:
Automatic Search: During a conversation, the agent searches the Knowledge Base at each response step.
Semantic Search: The agent retrieves the most relevant chunks of data using semantic search, ensuring the responses are contextually appropriate.
Contextual Responses: The retrieved information is passed to the Large Language Model (LLM) during generation. No need to modify the prompt or provide additional context.
Real-Time Retrieval: The knowledge base is accessed in real-time based on the conversation’s history. If no relevant matches are found, the agent will not pull content from the Knowledge Base.
To get the best performance from your Knowledge Base and ensure optimal retrieval of information, follow these best practices:
Use Clear Formatting: For best retrieval performance, ensure content is clearly formatted. Prefer markdown or structured text.
Group Related Content: Organize related information in sections. This makes it easier to retrieve relevant data when the agent queries the Knowledge Base.
Avoid Vague Language: Always use explicit references in content. Avoid using vague terms like “this” or “it.” Be specific.
Sync Specific Subpaths: When syncing websites, prefer syncing specific subpaths (URLs) instead of entire domains. This minimizes irrelevant data retrieval.
Use Knowledge Bases for Facts: Knowledge Bases are great for providing factual support. Avoid using them for task instructions—that’s better suited for system prompts.