Retrievers
Get Retriever
Update Retriever
Delete Retriever
Direct Retrieve
ModelsExpand Collapse
type CompositeRetrievalResult struct{…}
Nodes []CompositeRetrievalResultNodeoptional
type Retriever struct{…}
An entity that retrieves context nodes from several sub RetrieverTools.
Name string
A name for the retriever tool. Will default to the pipeline name if not provided.
The pipelines this retriever uses.
Name string
A name for the retriever tool. Will default to the pipeline name if not provided.
Parameters for retrieval configuration.
Alpha float64optional
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
DenseSimilarityCutoff float64optional
Minimum similarity score wrt query for retrieval
FilesTopK int64optional
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
Metadata filters for vector stores.
Filters []MetadataFiltersFilterUnion
type MetadataFiltersFilterMetadataFilter struct{…}
Comprehensive metadata filter for vector stores to support more operators.
Value uses Strict types, as int, float and str are compatible types and were all converted to string before.
See: https://docs.pydantic.dev/latest/usage/types/#strict-types
Operator stringoptional
Vector store filter operator.
type RetrieverCreate struct{…}
Name string
A name for the retriever tool. Will default to the pipeline name if not provided.
The pipelines this retriever uses.
Name string
A name for the retriever tool. Will default to the pipeline name if not provided.
Parameters for retrieval configuration.
Alpha float64optional
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
DenseSimilarityCutoff float64optional
Minimum similarity score wrt query for retrieval
FilesTopK int64optional
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
Metadata filters for vector stores.
Filters []MetadataFiltersFilterUnion
type MetadataFiltersFilterMetadataFilter struct{…}
Comprehensive metadata filter for vector stores to support more operators.
Value uses Strict types, as int, float and str are compatible types and were all converted to string before.
See: https://docs.pydantic.dev/latest/usage/types/#strict-types
Operator stringoptional
Vector store filter operator.
type RetrieverPipeline struct{…}
Name string
A name for the retriever tool. Will default to the pipeline name if not provided.
Parameters for retrieval configuration.
Alpha float64optional
Alpha value for hybrid retrieval to determine the weights between dense and sparse retrieval. 0 is sparse retrieval and 1 is dense retrieval.
DenseSimilarityCutoff float64optional
Minimum similarity score wrt query for retrieval
FilesTopK int64optional
Number of files to retrieve (only for retrieval mode files_via_metadata and files_via_content).
Metadata filters for vector stores.
Filters []MetadataFiltersFilterUnion
type MetadataFiltersFilterMetadataFilter struct{…}
Comprehensive metadata filter for vector stores to support more operators.
Value uses Strict types, as int, float and str are compatible types and were all converted to string before.
See: https://docs.pydantic.dev/latest/usage/types/#strict-types
Operator stringoptional
Vector store filter operator.