API · Knowledge Base
Document upload · Search · Delete
Knowledge Base API
Knowledge base ingest and retrieval.
List Knowledge Bases
Upload a Document
Single File
Response:
Text
Status Query
status values: uploading / parsing / chunking / embedding / ready / failed.
Search
Response:
Delete a Document
Re-Parse
Useful for bulk re-parsing after changing the chunking strategy.
Anti-Patterns
- Treating the search API as an LLM call — it returns retrieval results only, no generation. Use Agent for generation
- Setting TopK to 100 — the LLM context cannot accommodate it; noise increases hallucination