Vector Retriever
What's a Vector Retriever?
Vector Retriever is the most commonly used retriever type for document-based applications. It retrieves documents from a data store with vector capability using semantic similarity search.
Best For:
Document search and retrieval
Semantic similarity matching
Large-scale text corpora
Unstructured data search
Key Features:
Embedding-based similarity search
Support for data stores with vector capability (Chroma, Elasticsearch, Redis, etc.)
Metadata filtering and scoring
Configurable similarity thresholds and batch queries
Use Cases:
Document Q&A systems
Content recommendation engines
Semantic search applications
Knowledge base retrieval
Prerequisites
This example specifically requires completion of all setup steps listed on the Prerequisites page.
You should be familiar with these concepts:
Data Store and the vector capability
EM Invoker for embeddings
Installation
What it does
The Vector Retriever retrieves relevant documents from a data store with vector capability based on semantic similarity to a query. It provides a standardized interface for document retrieval operations in Gen AI applications.
Usage
Use VectorRetriever with a data store that has vector capability registered:
Implementation notes: Filter syntax depends on the data store backend. See Query filters and the backend documentation for supported operators and field names.
The previous vector retriever implementation (BasicVectorRetriever) is deprecated. See Vector Retriever (Legacy) only if you still use the legacy vector data store API.
Last updated
Was this helpful?