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.aget loads one knowledge base by id, returning a full KnowledgeBase instance.
from xpander_sdk import KnowledgeBases

kb = await KnowledgeBases().aget(knowledge_base_id="kb-456")
print(kb.name, kb.total_documents)

Parameters

ParameterTypeRequiredDescription
knowledge_base_idstrYesKB id.

Returns KnowledgeBase

A full KnowledgeBase instance. See the KnowledgeBase class reference.

Sync version

kb = KnowledgeBases().get(knowledge_base_id="kb-456")

Errors

Raises ModuleException on failure:
StatusCause
404KB doesn’t exist or wrong org.
403KB exists but isn’t accessible.
500Server error.