Actions11
Answer → Generate
AI-generatedOverview
This node interacts with the Moorcheh Vector Store API to generate answers based on a query within a specified namespace. It supports advanced AI models and allows customization of parameters such as top K results, threshold, temperature, and chat history. This node is useful for scenarios where users want to retrieve AI-generated answers from a vector store, such as in knowledge bases, customer support, or AI-driven Q&A systems.
Use Case Examples
- Generating an AI-based answer to a user query within a specific namespace using the Claude Sonnet 4.6 model.
- Customizing the answer generation with temperature and chat history to simulate a conversational assistant.
- Using kiosk mode with a threshold to filter answers based on confidence scores.
Properties
| Name | Meaning |
|---|---|
| Namespace | The namespace within the Moorcheh vector store to query for generating the answer. This is a required string input. |
| Type | The type of answer generation, fixed as 'text' and hidden from the user. |
| Query | The query string for which the answer is to be generated. This is a required input. |
| Top K | The number of top relevant results to consider when generating the answer. |
| Threshold | The confidence threshold used in kiosk mode to filter answers. |
| Kiosk Mode | A boolean flag to enable kiosk mode, which applies the threshold filter to answers. |
| AI Model | The AI model to use for generating the answer. Options include various models like Amazon Nova Pro, Claude Opus 4.6, DeepSeek R1, Llama 4 Maverick 17B, OpenAI GPT OSS 120B, and others. |
| Temperature | The temperature parameter controls the randomness of the AI model's output during answer generation. |
| Header Prompt | An optional header prompt to prepend to the query for context or instruction. |
| Footer Prompt | An optional footer prompt to append to the query for context or instruction. |
| Chat History | A collection of previous messages with roles (user or assistant) and content to provide conversational context for the answer generation. |
Output
JSON
json- The JSON response from the Moorcheh API containing the generated answer and related data.
Dependencies
- An API key credential for Moorcheh API authentication
Troubleshooting
- Ensure the namespace and query parameters are correctly set and not empty, as they are required for generating answers.
- Verify that the API key credential for Moorcheh API is valid and has the necessary permissions.
- If the node throws an error about unsupported resource or operation, check that the resource is set to 'answer' and operation to 'generate'.
- If JSON parsing errors occur in metadata, ensure that any metadata input is valid JSON format.