Knowledge bases provide your agents with reference material they can search during calls. When a caller asks a question, the agent queries attached knowledge bases for relevant chunks and uses them to ground its response — preventing hallucination and keeping answers accurate.
This is retrieval-augmented generation (RAG) applied to real-time voice conversations.
Prerequisites: Neuratel account, API key
How it works
You create a knowledge base from a URL, plain text, or file upload.
Neuratel splits the content into chunks and indexes them for semantic search.
You attach the knowledge base to one or more agents.
During a call, the agent searches the knowledge base when it needs information.
Relevant chunks are injected into the LLM context alongside the conversation history.
Directly paste text content — useful for internal policies, scripts, or structured data.
Code
curl -X POST https://api.neuratel.ai/v1/knowledge-base \ -H "Authorization: Bearer nk_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Return Policy", "type": "text", "content": "Our return policy allows returns within 30 days of purchase. Items must be in original packaging. Refunds are processed within 5-7 business days. Digital products are non-refundable. Contact [email protected] for exceptions.", "description": "Company return and refund policy" }'
Code
kb = client.post("/v1/knowledge-base", json={ "name": "Return Policy", "type": "text", "content": ( "Our return policy allows returns within 30 days of purchase. " "Items must be in original packaging. Refunds are processed within " "5-7 business days. Digital products are non-refundable. " "Contact [email protected] for exceptions." ), "description": "Company return and refund policy",}).json()
Code
const kb = await fetch("https://api.neuratel.ai/v1/knowledge-base", { method: "POST", headers: { "Authorization": "Bearer nk_live_your_api_key", "Content-Type": "application/json", }, body: JSON.stringify({ name: "Return Policy", type: "text", content: "Our return policy allows returns within 30 days of purchase. " + "Items must be in original packaging. Refunds are processed within " + "5-7 business days. Digital products are non-refundable. " + "Contact [email protected] for exceptions.", description: "Company return and refund policy", }),}).then((r) => r.json());