LlamaCloud icon

LlamaCloud

Retrieve context from your LlamaCloud Index

Overview

This node integrates with LlamaCloud to retrieve contextual information from a specified LlamaCloud index. It is designed to query an existing index by sending a text input and receiving relevant context data based on similarity search. This can be useful in scenarios such as enhancing chatbots, knowledge base lookups, or any application requiring retrieval of related documents or information snippets from a custom index.

For example, you might use this node to:

  • Retrieve relevant documents or passages related to a user's question.
  • Provide context-aware responses in conversational AI workflows.
  • Fetch supporting information for decision-making processes.

Properties

Name Meaning
Index Name The name of your LlamaCloud index to query against.

Output

The node outputs JSON data containing a context field, which is an array of strings. Each string represents the content of a retrieved node from the LlamaCloud index that matches the query. If no relevant nodes are found, the array will be empty.

Example output structure:

{
  "context": [
    "First relevant document content...",
    "Second relevant document content...",
    "...additional matched contents"
  ]
}

No binary data is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with LlamaCloud.
  • Uses the llamaindex library to interact with the LlamaCloud service.
  • The node expects the input data to contain a JSON property named chatInput (string) which serves as the query text.

Troubleshooting

  • Missing or invalid API key: Ensure that the API key credential is correctly configured and valid.
  • Empty or missing chatInput: The node expects the first input item's JSON to have a chatInput string property. If absent or not a string, the query will be empty, resulting in no context returned.
  • Index not found or incorrect index name: Verify that the provided index name exists in your LlamaCloud account and is spelled correctly.
  • Network or service errors: Check connectivity and LlamaCloud service status if requests fail.

Links and References

Discussion