LlamaParse Platform icon

LlamaParse Platform

Parse, classify, split, extract structured data, and retrieve context from documents and indexes using the LlamaParse Platform

Retrieve Context From an Index

AI-generated

Summary

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 chatInput field.
  • 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.

Links

Discussion