Index v2 setup in n8n

Prerequisites

In order to use Index v2 in n8n, you need to create an Index on LlamaCloud.

Learn how to set up an Index with v2 settings from code.

Setup

The Index v2 action is specifically designed for chat inputs, so you will first need to set up a Chat Trigger:

Chat Trigger

You can select the 'Retrieve from index' action from the LlamaParse Platform node:

LlamaCloud Index Setup

And provide the ID of your LlamaCloud Index in the configuration field, and, optionally, the top K chunks to retrieve:

LlamaCloud Index Setup

Or select the index from the list of available ones:

LlamaCloud Index Setup

Once that is set, you can use the chat messages as input for the Index v2 to retrieve information simply by connecting the nodes, and the you can start chatting:

LlamaCloud Index Chat


View Also: