- Traditional
ragmode; where each user query is searched against the knowledge base. agenticmode; here the LLM takes a decision to search each knowledge base depending on the user query.
Getting Started
Documents and websites are indexed and made available to agents using the Knowledge Base component, simply create a knowledge base, upload your documents and tag it with the agents.Knowledge Base creation and management can be performed using the API’s or our Developer Platform.
1
Step 1 - Create new Knowledge Base
Replace
<api-key> with your actual API key generated from our Portal.- Our API supports several different formats and knowledge sources to be indexed and created as knowledge base.
Supported Documents format:
.pdf,.docx,.txtand.html - You can also add raw text input as knowledge.
- You can also add a website URL; that can be scrapped and indexed into the knowledge base.
2
Step 2 - Create/Edit Agent to add Knowledge Base
Use the Create/Update Agent API to programmatically attach 1 or more Knowledge Base to your agent.
Replace
<api-key> with your actual API key generated from our Portal.- You can attach more than 1 more knowledge base to the agent by simply adding them to the
knowledge_basearray in the request.
3
Step 3 - Start a conversation
Any conversation from this point on with this agent will leverage the Knowledge Base(s) attached.
Know More
Our API References sections have several endpoints to create and manage Knowledge Base.Knowledge Base - API Reference
Explore full set of supported APIs to create and manage Knowledge Base.