Search Knowledge Bases
Semantic search across a caller-owned list of knowledge bases. Returns ranked chunks with source filename and a cosine-similarity score. Limited to 50 results per request.
Authentication
Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.
Headers
Request
Natural-language search query.
Knowledge bases to search across. Results scoped to caller-owned entries; unknown IDs are silently ignored.
Max hits to return (default 5, capped at 50).
Response headers
Response
Retrieval’s verdict on whether the evidence it found answers the
question. sufficient: answer from the hits. partial: something
related was found; answer with care. insufficient: nothing found
clears even the low bar, and the honest answer is that the knowledge
base does not cover this; the agent’s search_knowledge tool then
reports no relevant context rather than the weak hits.