Overview
A vector store stores embedded data and performs similarity search.Interface
LangChain provides a unified interface for vector stores, allowing you to:add_documents- Add documents to the store.delete- Remove stored documents by ID.similarity_search- Query for semantically similar documents.
Initialization
To initialize a vector store, provide it with an embedding model:Adding documents
AddDocument objects (holding page_content and optional metadata) like so:
Deleting documents
Delete by specifying IDs:Similarity search
Issue a semantic query usingsimilarity_search, which returns the closest embedded documents:
k— number of results to returnfilter— conditional filtering based on metadata
Similarity metrics & indexing
Embedding similarity may be computed using:- Cosine similarity
- Euclidean distance
- Dot product
Metadata filtering
Filtering by metadata (e.g., source, date) can refine search results:Top integrations
Select embedding model:OpenAI
OpenAI
Azure
Azure
Google Gemini
Google Gemini
Google Vertex
Google Vertex
AWS
AWS
HuggingFace
HuggingFace
Ollama
Ollama
Cohere
Cohere
Mistral AI
Mistral AI
Nomic
Nomic
NVIDIA
NVIDIA
Voyage AI
Voyage AI
IBM watsonx
IBM watsonx
Fake
Fake
xAI
xAI
Perplexity
Perplexity
DeepSeek
DeepSeek
In-memory
In-memory
Astra DB
Astra DB
Azure Cosmos DB NoSQL
Azure Cosmos DB NoSQL
Azure Cosmos DB Mongo vCore
Azure Cosmos DB Mongo vCore
Chroma
Chroma
FAISS
FAISS
Milvus
Milvus
MongoDB
MongoDB
PGVector
PGVector
PGVectorStore
PGVectorStore
Pinecone
Pinecone
Qdrant
Qdrant
| Vectorstore | Delete by ID | Filtering | Search by Vector | Search with score | Async | Passes Standard Tests | Multi Tenancy | IDs in add Documents |
|---|---|---|---|---|---|---|---|---|
AstraDBVectorStore | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
AzureCosmosDBNoSqlVectorStore | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ |
AzureCosmosDBMongoVCoreVectorStore | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ |
Chroma | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Clickhouse | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ❌ | ✅ |
CouchbaseSearchVectorStore | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
DatabricksVectorSearch | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
ElasticsearchStore | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
FAISS | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
InMemoryVectorStore | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ❌ | ✅ |
Milvus | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Moorcheh | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
MongoDBAtlasVectorSearch | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
openGauss | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ |
PGVector | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ✅ |
PGVectorStore | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
PineconeVectorStore | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ |
QdrantVectorStore | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
Weaviate | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
SQLServer | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ✅ |
ZeusDB | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ |
All vector stores
Activeloop Deep Lake
Alibaba Cloud OpenSearch
AnalyticDB
Annoy
Apache Doris
ApertureDB
Astra DB Vector Store
Atlas
AwaDB
Azure Cosmos DB Mongo vCore
Azure Cosmos DB No SQL
Azure AI Search
Bagel
BagelDB
Baidu Cloud ElasticSearch VectorSearch
Baidu VectorDB
Apache Cassandra
Chroma
Clarifai
ClickHouse
Couchbase
DashVector
Databricks
IBM Db2
DingoDB
DocArray HnswSearch
DocArray InMemorySearch
Amazon Document DB
DuckDB
China Mobile ECloud ElasticSearch
Elasticsearch
Epsilla
Faiss
Faiss (Async)
FalkorDB
Gel
Google AlloyDB
Google BigQuery Vector Search
Google Cloud SQL for MySQL
Google Cloud SQL for PostgreSQL
Firestore
Google Memorystore for Redis
Google Spanner
Google Vertex AI Feature Store
Google Vertex AI Vector Search
Hippo
Hologres
Jaguar Vector Database
Kinetica
LanceDB
Lantern
Lindorm
LLMRails
ManticoreSearch
MariaDB
Marqo
Meilisearch
Amazon MemoryDB
Milvus
Momento Vector Index
Moorcheh
MongoDB Atlas
MyScale
Neo4j Vector Index
NucliaDB
Oceanbase
openGauss
OpenSearch
Oracle AI Vector Search
Pathway
Postgres Embedding
PGVecto.rs
PGVector
PGVectorStore
Pinecone
Pinecone (sparse)
Qdrant
Relyt
Rockset
SAP HANA Cloud Vector Engine
ScaNN
SemaDB
SingleStore
scikit-learn
SQLiteVec
SQLite-VSS
SQLServer
StarRocks
Supabase
SurrealDB
Tablestore
Tair
Tencent Cloud VectorDB
ThirdAI NeuralDB
TiDB Vector
Tigris
TileDB
Timescale Vector
Typesense
Upstash Vector
USearch
Vald
VDMS
Vearch
Vectara
Vespa
viking DB
vlite
Weaviate
Xata
YDB
Yellowbrick
Zep
Zep Cloud
ZeusDB
Zilliz
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.