Overview
This node connects to a LlamaCloud index to retrieve contextual information based on an input query. It is designed to fetch relevant data snippets from a specified LlamaCloud index, which can then be used in workflows that require context-aware responses or data enrichment.
Common scenarios include:
- Enhancing chatbot interactions by providing relevant background information.
- Retrieving knowledge base articles or documents related to user queries.
- Supporting decision-making processes with contextual data fetched dynamically.
For example, a user might input a question into the workflow, and this node will query the LlamaCloud index to return the most relevant pieces of information to help answer that question.
Properties
| Name | Meaning |
|---|---|
| Index Name | Your LlamaCloud index name. The identifier of the index from which to retrieve context. |
Output
The node outputs JSON data containing a context field, which is an array of strings. Each string represents a piece of content retrieved from the LlamaCloud index that is relevant to the input query.
Output structure example:
{
"context": [
"First relevant content snippet",
"Second relevant content snippet",
"...additional snippets"
]
}
No binary data output is produced by this node.
Dependencies
- Requires an API key credential for authenticating with the LlamaCloud service.
- Uses the
llamaindexlibrary internally to interact with the LlamaCloud index. - The node expects the input data to contain a
chatInputstring property, which serves as the query for retrieving context.
Troubleshooting
- Empty or missing
chatInput: If the input data does not contain a validchatInputstring, the node will send an empty context array. Ensure that the input JSON includes achatInputfield with the query text. - Invalid or missing API key: Authentication failures may occur if the API key credential is not set or invalid. Verify that the API key is correctly configured in the node credentials.
- Incorrect index name: Providing a wrong or non-existent index name will result in no context being retrieved. Double-check the index name spelling and existence in your LlamaCloud account.
- Network or service errors: Connectivity issues or service downtime may cause errors during retrieval. Check network connectivity and LlamaCloud service status.
Links and References
- LlamaCloud Official Website
- LlamaIndex GitHub Repository (for the underlying library used)
- n8n Documentation on Credentials for setting up API keys