Semantic search (RAG)
Knowledge base
Semantic search (RAG)
Full URL: POST https://api.kupe.in/api/v1/search/semantic?agent_id={uuid}
Vector search scoped to agent_id chunk metadata.
Auth: excluded from x-api-key in the backend (same as create_call) — secure at the edge if exposed publicly.
POST
Semantic search (RAG)
Query Parameters
Body
application/json
Response
Chunk texts + numeric scores (cosine distance; lower = more similar when returned).
Returned by POST /api/v1/search/semantic and POST /api/v1/search/hybrid. data is chunk text strings. scores: semantic returns a parallel list of numeric distances; hybrid returns objects { combined_score, distance, sparse_score } per chunk.