Skip to main content

Documentation 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.alist returns every knowledge base your organization owns.
from xpander_sdk import KnowledgeBases

kbs = await KnowledgeBases().alist()
for kb in kbs:
    print(kb.id, kb.name, kb.total_documents)

Parameters

None.

Returns list[KnowledgeBase]

Each KnowledgeBase is a full instance. See the KnowledgeBase class reference for fields and methods.
FieldTypeDescription
idstrKnowledge-base identifier.
namestrDisplay name.
descriptionstr | NoneDescription.
typeKnowledgeBaseTypeMANAGED (xpander.ai vector store) or EXTERNAL (provider-managed).
organization_idstrOwning org.
total_documentsintDocument count.

Sync version

kbs = KnowledgeBases().list()

Errors

Raises ModuleException on failure.