Skip to main content
POST
/
v1
/
knowledge
/
search
Search knowledge
curl --request POST \
  --url http://localhost:8000/v1/knowledge/search \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "alice",
  "query": "remote work policy",
  "top_k": 5
}
'
{
  "chunks": [
    {
      "chunk_id": "kb_3f7a1c2d9e4b_chunk_1",
      "kb_id": "kb_3f7a1c2d9e4b",
      "content": "Remote work is allowed up to 3 days per week.",
      "score": 0.92
    }
  ]
}

Body

application/json
user_id
string
required
query
string
required

Natural-language search query.

agent_id
string | null
app_id
string | null
workspace_id
string | null
top_k
integer
default:5

Number of chunks to return.

Response

200 - application/json

Matching knowledge chunks

chunks
object[]