Retrieve relevant context from a context vault based on a prompt. Use includeSources parameter to choose response format.
rerank is enabled, the system also analyzes the prompt for example for bullet points or enumerated instructions (e.g., “1) Look at this, 2) Include this as well, 3) This is also important”). These bullets are used to rerank the retrieved nodes so that the final context better reflects the user’s priorities and instructions.API key for the Qontext API
The id of the vault from which to retrieve context.
"kg_681c0068-b589-4923-ac4a-73040fab7a45"
The prompt to retrieve context for.
"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?"
Number of nodes to consider at the first level of the knowledge vault.
5
Depth of nodes to retrieve from the graph.
1
Include source information in response. When false (default), returns simple text strings. When true, returns objects with text and sources.
Context successfully retrieved