ModelsExpand Collapse type CompositeRetrievalMode string
Enum for the mode of composite retrieval.
type CompositeRetrievalResult struct{…}
The image nodes retrieved by the pipeline for the given query. Deprecated - will soon be replaced with ‘page_screenshot_nodes’.
Node PageScreenshotNodeWithScoreNode
The ID of the file that the page screenshot was taken from
The size of the image in bytes
The index of the page for which the screenshot is taken (0-indexed)
Metadata map [ string , any ] optional
Metadata for the screenshot
The score of the screenshot node
Nodes [] CompositeRetrievalResultNode optional
The retrieved nodes from the composite retrieval.
Node CompositeRetrievalResultNodeNode
The ID of the retrieved node.
The end character index of the retrieved node in the document
The ID of the pipeline this node was retrieved from.
The ID of the retriever this node was retrieved from.
RetrieverPipelineName string
The name of the retrieval pipeline this node was retrieved from.
The start character index of the retrieved node in the document
The text of the retrieved node.
Metadata associated with the retrieved node.
The page figure nodes retrieved by the pipeline for the given query.
Node PageFigureNodeWithScoreNode
The confidence of the figure
The size of the figure in bytes
The ID of the file that the figure was taken from
The index of the page for which the figure is taken (0-indexed)
IsLikelyNoise bool optional
Whether the figure is likely to be noise
Metadata map [ string , any ] optional
The score of the figure node
type ReRankConfig struct{…}
The number of nodes to retrieve after reranking over retrieved nodes from all retrieval tools.
Type ReRankConfigType optional
The type of reranker to use.
One of the following:
const ReRankConfigTypeSystemDefault ReRankConfigType = "system_default"
const ReRankConfigTypeLlm ReRankConfigType = "llm"
const ReRankConfigTypeCohere ReRankConfigType = "cohere"
const ReRankConfigTypeBedrock ReRankConfigType = "bedrock"
const ReRankConfigTypeScore ReRankConfigType = "score"
const ReRankConfigTypeDisabled ReRankConfigType = "disabled"
An entity that retrieves context nodes from several sub RetrieverTools.
A name for the retriever tool. Will default to the pipeline name if not provided.
The ID of the project this retriever resides in.
The pipelines this retriever uses.
A description of the retriever tool.
A name for the retriever tool. Will default to the pipeline name if not provided.
The ID of the pipeline this tool uses.
Parameters for retrieval configuration.
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
DenseSimilarityCutoff float64 optional
Minimum similarity score wrt query for retrieval
DenseSimilarityTopK int64 optional
Number of nodes for dense retrieval.
EnableReranking bool optional
Enable reranking for retrieval
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
Number of reranked nodes for returning.
The retrieval mode for the query.
One of the following:
const RetrievalModeFilesViaMetadata RetrievalMode = "files_via_metadata"
const RetrievalModeFilesViaContent RetrievalMode = "files_via_content"
Deprecated RetrieveImageNodes bool optional
Whether to retrieve image nodes.
RetrievePageFigureNodes bool optional
Whether to retrieve page figure nodes.
RetrievePageScreenshotNodes bool optional
Whether to retrieve page screenshot nodes.
Metadata filters for vector stores.
One of the following:
Vector store filter operator.
Metadata filters for vector stores.
Vector store filter conditions to combine different filters.
SearchFiltersInferenceSchema map [ string , PresetRetrievalParamsSearchFiltersInferenceSchemaUnionResp ] optional
JSON Schema that will be used to infer search_filters. Omit or leave as null to skip inference.
One of the following:
type PresetRetrievalParamsSearchFiltersInferenceSchemaMap map [ string , any ]
type PresetRetrievalParamsSearchFiltersInferenceSchemaArray [] any
SparseSimilarityTopK int64 optional
Number of nodes for sparse retrieval.
type RetrieverCreate struct{…}
A name for the retriever tool. Will default to the pipeline name if not provided.
The pipelines this retriever uses.
A description of the retriever tool.
A name for the retriever tool. Will default to the pipeline name if not provided.
The ID of the pipeline this tool uses.
Parameters for retrieval configuration.
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
DenseSimilarityCutoff float64 optional
Minimum similarity score wrt query for retrieval
DenseSimilarityTopK int64 optional
Number of nodes for dense retrieval.
EnableReranking bool optional
Enable reranking for retrieval
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
Number of reranked nodes for returning.
The retrieval mode for the query.
One of the following:
const RetrievalModeFilesViaMetadata RetrievalMode = "files_via_metadata"
const RetrievalModeFilesViaContent RetrievalMode = "files_via_content"
Deprecated RetrieveImageNodes bool optional
Whether to retrieve image nodes.
RetrievePageFigureNodes bool optional
Whether to retrieve page figure nodes.
RetrievePageScreenshotNodes bool optional
Whether to retrieve page screenshot nodes.
Metadata filters for vector stores.
One of the following:
Vector store filter operator.
Metadata filters for vector stores.
Vector store filter conditions to combine different filters.
SearchFiltersInferenceSchema map [ string , PresetRetrievalParamsSearchFiltersInferenceSchemaUnionResp ] optional
JSON Schema that will be used to infer search_filters. Omit or leave as null to skip inference.
One of the following:
type PresetRetrievalParamsSearchFiltersInferenceSchemaMap map [ string , any ]
type PresetRetrievalParamsSearchFiltersInferenceSchemaArray [] any
SparseSimilarityTopK int64 optional
Number of nodes for sparse retrieval.
type RetrieverPipeline struct{…}
A description of the retriever tool.
A name for the retriever tool. Will default to the pipeline name if not provided.
The ID of the pipeline this tool uses.
Parameters for retrieval configuration.
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
DenseSimilarityCutoff float64 optional
Minimum similarity score wrt query for retrieval
DenseSimilarityTopK int64 optional
Number of nodes for dense retrieval.
EnableReranking bool optional
Enable reranking for retrieval
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
Number of reranked nodes for returning.
The retrieval mode for the query.
One of the following:
const RetrievalModeFilesViaMetadata RetrievalMode = "files_via_metadata"
const RetrievalModeFilesViaContent RetrievalMode = "files_via_content"
Deprecated RetrieveImageNodes bool optional
Whether to retrieve image nodes.
RetrievePageFigureNodes bool optional
Whether to retrieve page figure nodes.
RetrievePageScreenshotNodes bool optional
Whether to retrieve page screenshot nodes.
Metadata filters for vector stores.
One of the following:
Vector store filter operator.
Metadata filters for vector stores.
Vector store filter conditions to combine different filters.
SearchFiltersInferenceSchema map [ string , PresetRetrievalParamsSearchFiltersInferenceSchemaUnionResp ] optional
JSON Schema that will be used to infer search_filters. Omit or leave as null to skip inference.
One of the following:
type PresetRetrievalParamsSearchFiltersInferenceSchemaMap map [ string , any ]
type PresetRetrievalParamsSearchFiltersInferenceSchemaArray [] any
SparseSimilarityTopK int64 optional
Number of nodes for sparse retrieval.
Note for AI agents: this documentation is built for programmatic access.
- Overview of all docs: https://developers.llamaindex.ai/llms.txt
- Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md
- Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters.
- A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/python/shared/mcp/