Knowledge bases give your AI agents the ability to search and retrieve relevant information from your documents. This guide walks through creating a KB, adding a source, waiting for indexing, and testing semantic search.Documentation Index
Fetch the complete documentation index at: https://docs.powabase.ai/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites:
- A completed source (see Upload a Document guide)
Create the knowledge base
Choose a name and indexing strategy. The default strategy works well for most documents.Endpoint: Response:
POST /api/knowledge-basesAdd a source to the knowledge base
Link an uploaded source (from the previous guide) to trigger indexing. The source’s extracted content is chunked, embedded, and stored.Endpoint:
POST /api/knowledge-bases/{id}/sourcesIndexing runs asynchronously. For large documents this can take 30 seconds or more.
Check indexing status
Fetch the knowledge base to see the status of each indexed source. Wait until all sources show ‘indexed’.Endpoint:
GET /api/knowledge-bases/{id}What’s Next
Build an Agent
Create an agent that uses your knowledge base.
Knowledge Bases & Indexing
Deep dive into chunking and embeddings.
Knowledge Bases API Reference
Full endpoint documentation.