Actions5
- Ingestion Actions
- Retrieval Actions
Overview
The node integrates with the Qontext API to retrieve answers based on a given prompt and context stored in a knowledge graph (referred to as a "context vault"). Specifically, the "Retrieval" resource with the "Get Answer" operation allows users to query a particular vault within a workspace to obtain relevant information or answers.
This node is beneficial in scenarios where you have structured knowledge bases or context vaults and want to extract precise answers or insights by providing natural language prompts. For example, it can be used to build chatbots, automated help desks, or intelligent search tools that leverage curated knowledge graphs.
Properties
| Name | Meaning |
|---|---|
| Workspace ID | The unique identifier of the workspace containing the context vault to query. |
| Context Vault ID | The unique identifier of the specific vault (knowledge graph) used to answer the question. |
| Prompt | The natural language prompt or question for which the node should retrieve an answer. |
| Additional Fields | Optional parameters: • Limit: Maximum number of results to return (default 50). • Depth: Depth level of retrieval within the knowledge graph (default 1). |
Output
The node outputs JSON data containing the answer(s) retrieved from the specified context vault based on the prompt. The structure typically includes the relevant text or data extracted from the knowledge graph that best matches the prompt.
If the node supports binary data output (not indicated here), it would represent any associated files or media related to the answer, but this is not evident from the provided code.
Dependencies
- Requires an API key credential for authenticating with the Qontext API.
- The node communicates with the Qontext API endpoint at
https://api.staging.qontext.ai/v1. - Proper configuration of the API key in n8n credentials is necessary.
Troubleshooting
- Invalid or missing API key: Ensure the API key credential is correctly set up and linked to the node.
- Incorrect Workspace ID or Context Vault ID: Verify that the IDs correspond to existing resources in your Qontext account.
- Empty or unclear prompt: Provide a clear and meaningful prompt to get relevant answers.
- API rate limits or connectivity issues: Check network connectivity and API usage limits.
- Unexpected response format: Confirm that the Qontext API version matches the expected schema.
Links and References
- Qontext API Documentation (Assumed; replace with actual URL if available)
- n8n Documentation on Creating Custom Nodes