Lifecycle
- Create —
POST /v1/chat/knowledge-storewith a name and description. - Upload — Push PDFs, Markdown, or HTML. Agntix chunks (~1k tokens), embeds (Cohere), and indexes (Qdrant).
- Process — Documents are processed asynchronously. Subscribe to the
knowledge_store.updatedwebhook to know when a doc is ready. - Attach — Set
config.knowledgeStoreIdon an agent.
Best practices
Keep stores narrow
One store per topic gives much better retrieval than one giant store with everything.
Refresh on a schedule
Re-upload changed documents weekly; old chunks are replaced atomically.
Enable reranking
Cohere reranking adds ~150ms but cuts hallucinations dramatically.
Cite sources in prompts
Tell the agent in its system prompt to cite chunk titles to build user trust.