Knowledge bases provide semantic search over your document content. They store chunked and embedded text from one or more sources, enabling retrieval-augmented generation (RAG). When you add a source to a knowledge base, the platform automatically chunks the source’s page texts, generates vector embeddings, and stores them for similarity 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.
Common Patterns
Create a knowledge base, add one or more sources to trigger indexing, then use the search endpoint to query. Check indexing status by fetching the knowledge base details. Reindex when you change chunking parameters or want to re-process sources.GET /api/knowledge-bases
List all knowledge bases.POST /api/knowledge-bases
Create a new knowledge base.GET /api/knowledge-bases/
Get a knowledge base with its indexed sources and status.KB ID
PATCH /api/knowledge-bases/
Update knowledge base configuration or strategy.KB ID
DELETE /api/knowledge-bases/
Delete a knowledge base and all its indexed data.KB ID
POST /api/knowledge-bases//sources
Add a source to the knowledge base. Triggers asynchronous indexing.KB ID
POST /api/knowledge-bases//reindex
Reindex all sources in the knowledge base.KB ID
POST /api/knowledge-bases//search
Run a semantic vector search against the knowledge base.KB ID
Error Responses
| Status | Code | Description |
|---|---|---|
| 400 | invalid_config | Invalid chunking or embedding configuration |
| 404 | kb_not_found | No knowledge base exists with the given ID |
| 409 | already_indexing | The knowledge base is already being indexed — wait for completion before reindexing |