Create a knowledge base
Upload a file
Sendmultipart/form-data:
Wait for indexing
Indexing runs asynchronously. Poll the file list until every file’sstatus is ready:
Query for retrieved chunks
Retrieval only — no LLM call. Useful for inspecting what your KB actually contains.Chat with the knowledge base (RAG)
Same OpenAI-compatible chat shape as/v1/chat/completions, plus a KB reference. The platform retrieves the relevant chunks and grounds the model’s answer in them.
messages[] on every turn. The server injects fresh KB context each call.
Next: Research →
