Actions6
Retrieve Context From an Index
AI-generatedSummary
Retrieves context chunks from a LlamaCloud index using a natural-language query and returns their content.
Inputs
- Index ID (required) — Select an index from the list or enter its ID.
- Query (required) — Natural-language query to search with; defaults to the current item's
chatInputfield. - Top K — Maximum number of chunks to request; defaults to 5 and must be at least 1.
Output shape
A single item per input item, with a context array of retrieved chunk content strings.
Results without content are omitted; an empty array is returned when no content is available. Retrieval errors fail the item unless Continue On Fail is enabled.