Get context for a given prompt
cURL
curl --request POST \ --url https://api.staging.qontext.ai/v1/retrieval \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data '{ "workspaceId": "ws_123e4567-e89b-12d3-a456-426614174000", "knowledgeGraphId": "kg-681c0068-b589-4923-ac4a-73040fab7a45", "prompt": "What is the capital of France?", "limit": 5, "depth": 1 }'
{ "summary": "France is a country in Western Europe." }
API key for the Qontext API
Context retrieved successfully
The response is of type object.
object