Skip to main content
POST
Semantic search

Body

application/json

Gateway POST /knowledge_base/query — QuerySchema (top_k accepted in body; gateway currently forwards namespace + query to the knowledge service).

namespace
string
required
query
string
required

Natural language search query.

top_k
integer

Optional; present in validation schema — wire-up to the knowledge service may evolve.

Required range: x >= 1

Response

Search results.

ok
boolean
required
results
object[]
required
total_candidates
integer

Total number of candidate chunks evaluated.