TheDocumentation Index
Fetch the complete documentation index at: https://docs.xpander.ai/llms.txt
Use this file to discover all available pages before exploring further.
KnowledgeBases module is the entry point for managing knowledge bases: vector stores backed by uploaded documents. Use it to list existing KBs, load one, or create a new KB. The actual document operations (add_documents, search, list_documents, delete) live on the KnowledgeBase instance.
Constructor
| Parameter | Type | Default | Description |
|---|---|---|---|
configuration | Configuration | None | SDK configuration. Falls back to env vars. |
Module methods
| Method | Returns | What it does |
|---|---|---|
alist / list | list[KnowledgeBase] | All KBs accessible to the org. |
aget / get | KnowledgeBase | Load one KB by id. |
acreate / create | KnowledgeBase | Create a new KB. |
KnowledgeBase instance methods
See the KnowledgeBase class reference for:
aadd_documents/add_documentsalist_documents/list_documentsadelete_multiple_documents/delete_multiple_documentsasearch/searchadelete/delete
Linking to an agent
Knowledge bases linked to an agent are configured in the Workbench or withagent.attach_knowledge_base(...). Once linked, the agent’s framework retriever queries them automatically: see the Agent knowledge bases page.
