Search for relevant documents based on query
POST
Search for relevant documents based on query.
Personal access token scope: chat:run.
bearerheader
AuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
api_key*stringAPI key for authentication
chunks?integerNumber of results to return
Default
5question*stringSearch query
Success
curl -X POST 'http://localhost:7091/api/search' \ -H 'Content-Type: application/json' \ -d '{ "api_key": "string", "question": "string"}'Example Response200
Empty
Provide a response based on the question and retriever POST
Provide a response based on the question and retriever. [Personal access token](/API/personal-access-tokens) scope: `chat:run`.
Stream a response based on the question and retriever POST
Stream a response based on the question and retriever. [Personal access token](/API/personal-access-tokens) scope: `chat:run`.