Skip to main content
POST
Semantic search over indexed knowledge documents

Body

application/json

Request body for POST /v1/knowledge/search.

query
string
required

Free-text question or query to embed and search semantically.

Minimum string length: 1
Example:

"Qual a politica de SLA para clientes Enterprise?"

top_k
integer
default:5

Maximum number of chunks to return.

Required range: 1 <= x <= 50
filters
SearchFilters · object | null

Optional filters applied to the Qdrant search.

search_mode
enum<string>
default:hybrid

Search mode: 'hybrid' uses RRF fusion (dense + sparse BM25) for improved recall — requires collection with named vectors (text-dense + text-sparse). 'dense' uses only the embedding vector (cosine similarity). Falls back to 'dense' automatically for collections with old schema.

Available options:
hybrid,
dense

Response

Successful Response

Response for POST /v1/knowledge/search.

results
SearchResult · object[]
required
query_embedding_model
string
required
total_results
integer
required