client.storage.knowledge_base. See the Storage API reference.
Create a knowledge base
List, retrieve, update, delete
List files in a knowledge base
Semantic retrieval
rag parameter — see Chat.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Manage knowledge bases and run semantic retrieval with the Python SDK.
client.storage.knowledge_base. See the Storage API reference.
from pawa_ai import PawaAI
client = PawaAI()
kb = client.storage.knowledge_base.create(
name="Pawa Knowledge Base",
description="Product docs and FAQs for customer support agents.",
)
print(kb)
bases = client.storage.knowledge_base.list(page=1, limit=20, search="support")
print(bases)
kb = client.storage.knowledge_base.retrieve(knowledge_base_id=159)
print(kb)
updated = client.storage.knowledge_base.update(
159,
name="Support KB",
description="Updated description for the support knowledge base.",
)
print(updated)
deleted = client.storage.knowledge_base.delete(159)
print(deleted)
files = client.storage.knowledge_base.list_files(knowledge_base_id=159)
print(files)
from pawa_ai import PawaAI
client = PawaAI()
results = client.storage.knowledge_base.semantic_retrieval(
knowledgeBaseId=159,
query="What is the refund window?",
topK=5,
)
print(results)
rag parameter — see Chat.