How it works
- Create a knowledge base.
- Add documents (title + text). Each document is chunked (~1000 chars) and every chunk is embedded.
- Retrieval runs a cosine-similarity search over the chunks with pgvector.
bge-small-en-v1.5,
384-dim), so no external embeddings key is required.
From the CLI
From an agent
Add a tool with the built-in keyknowledge_search and reference it from an
agent node. At run time the agent calls knowledge_search(query), which embeds
the query and returns the top matching chunks for the model to answer from.
API
POST /v1/knowledge- create a basePOST /v1/knowledge/{kb}/documents- ingest a documentPOST /v1/knowledge/search- search chunks