Get context
Retrieval Endpoints
Get context
Retrieve relevant context from a context workspace based on a prompt. Use includeSources parameter to choose response format.
POST
Get context
- Hybrid search: The file index is first searched to find files that are most relevant to the prompt. This ensures that only the most relevant information is considered for retrieval.
- The retrieved files are read and returned as sources with their content.
Authorizations
API key for the Qontext API
Body
application/json
The prompt to retrieve context for.
Example:
"Give me the following information regarding Harry Potter. 1) Who is he?, 2) What is his relationship with Gryffindor Inc., Weasleys Wizard Wheezes, and Ollivanders?"
Maximum number of files to return in the context response.
Example:
5
Response
Context successfully retrieved