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 index by sending a text input and receiving relevant context data based on similarity search. This can be useful in scenarios such as enhancing chatbot responses, enriching data processing workflows with external knowledge, or building intelligent assistants that leverage indexed documents.

For example, you might use this node to:

  • Query a custom knowledge base stored in LlamaCloud to provide detailed answers.
  • Retrieve related documents or snippets for a given user query.
  • Augment automation workflows with contextual data extracted from indexed content.

Properties

Name Meaning
Index Name Your LlamaCloud index name to query against. This identifies which index the node will retrieve context from.

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. The content is extracted from nodes returned by the similarity search.

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 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: If the input data does not contain a chatInput string, the query will be empty and no context will be retrieved. Make sure to provide this input.
  • Index not found or inaccessible: Verify that the specified index name exists in your LlamaCloud project and that your API key has access rights.
  • No results returned: If the index contains no matching content for the query, the context array will be empty.

Links and References

Discussion