What are the four query modes?
A query returns a different shape depending on the mode you ask for:
- content: matching document ids and titles, no text. Locate documents, then read them.
- context: matching chunks, no generated answer. For when your agent writes the answer itself.
- answer: matching chunks plus a grounded answer. The default, and right for most questions.
- full: an answer grounded on whole documents rather than matched chunks. Best for "summarize the whole policy", and the slowest.
| Mode | Endpoint | What comes back |
|---|---|---|
| content | POST /org/search/content | Ids and titles. No text. Locate, then read. |
| context | POST /org/search/context | Matching chunks. Feed your own model. |
| answer | POST /org/search | Chunks plus a grounded answer and its sources. |
| full | POST /org/search/full | Answer grounded on whole documents. Slowest. |
bash
curl -X POST https://apiv2.senso.ai/api/v1/org/search \
-H "X-API-Key: $SENSO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "what is our refund window", "max_results": 5}'Call it
