Skip to main content
POST
/
knowledge_base
/
query
Semantic search
curl --request POST \
  --url https://api.svantic.com/knowledge_base/query \
  --header 'Content-Type: application/json' \
  --data '
{
  "namespace": "string",
  "query": "string",
  "top_k": 1
}
'
{
  "ok": true,
  "results": [
    {
      "text": "string",
      "source_id": "string",
      "score": 0,
      "tags": [
        "string"
      ]
    }
  ],
  "total_candidates": 0
}

Documentation Index

Fetch the complete documentation index at: https://docs.svantic.com/llms.txt

Use this file to discover all available pages before exploring further.

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.