Skip to Content
Docs

POST /api/sources/{source_id}/search

POST
/api/sources/{source_id}/search

Run the real retrieval pipeline against one source and return the ranked chunks it produces, optionally under an ad-hoc retrieval config. Read-only: nothing is saved.

Personal access token scope: chat:run.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

source_id*string

Request Body

application/json
  1. body
compare?boolean

Also return candidates: every chunk the stages received, in retriever order, with its relevance and whether it was kept.

query*string

The query to retrieve for

retrieval?

Ad-hoc retrieval config to test with. Omit to use the source's saved config. Never persisted.

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/sources/string/search' \  -H 'Content-Type: application/json' \  -d '{  "query": "string"}'
Example Response200
Empty