Installation
Cloud Vector Databases
Managed vector database services.Chroma
Open-source embedding database with Python and JavaScript clients.@langchain/community/vectorstores/chromaRequires:
chromadb
Pinecone
For Pinecone, use the official integration package:Weaviate
For Weaviate, use the official integration package:Qdrant
For Qdrant, use the official integration package:Self-Hosted Vector Stores
Vector stores you can run locally or on your own infrastructure.FAISS
Facebook AI Similarity Search - efficient similarity search library.@langchain/community/vectorstores/faissRequires:
faiss-node
HNSWlib
Hierarchical Navigable Small World - fast approximate nearest neighbor search.@langchain/community/vectorstores/hnswlibRequires:
hnswlib-node
LanceDB
Open-source vector database built on Lance format. Module:@langchain/community/vectorstores/lancedbRequires:
@lancedb/lancedb
Usearch
Single-header vector search engine. Module:@langchain/community/vectorstores/usearchRequires:
usearch
Voy
WASM-based vector search for browser environments. Module:@langchain/community/vectorstores/voyRequires:
voy-search
CloseVector
Vector search with Node.js and web support. Modules:@langchain/community/vectorstores/closevector/node@langchain/community/vectorstores/closevector/web
closevector-node or closevector-web
Database Extensions
Vector search capabilities added to existing databases.PGVector
PostgreSQL extension for vector similarity search.@langchain/community/vectorstores/pgvectorRequires:
pg, pg-copy-streams
Supabase
Supabase with pgvector extension.@langchain/community/vectorstores/supabaseRequires:
@supabase/supabase-js
Neon
Serverless Postgres with pgvector. Module:@langchain/community/vectorstores/neonRequires:
@neondatabase/serverless
Vercel Postgres
Vercel’s Postgres with pgvector support. Module:@langchain/community/vectorstores/vercel_postgresRequires:
@vercel/postgres
SingleStore
Distributed SQL database with vector support. Module:@langchain/community/vectorstores/singlestoreRequires:
mysql2
MariaDB
MariaDB with vector search capabilities. Module:@langchain/community/vectorstores/mariadbRequires:
mariadb
ClickHouse
OLAP database with vector search. Module:@langchain/community/vectorstores/clickhouseRequires:
@clickhouse/client
TypeORM
Use vector stores with TypeORM-supported databases. Module:@langchain/community/vectorstores/typeormRequires:
typeorm
Cassandra
Apache Cassandra with vector search. Module:@langchain/community/vectorstores/cassandraRequires:
cassandra-driver
Couchbase
Couchbase with full-text and vector search. Modules:@langchain/community/vectorstores/couchbase_search- Vector search@langchain/community/vectorstores/couchbase_query- Query-based search
couchbase
MongoDB
For MongoDB Atlas Vector Search, use:Enterprise Vector Stores
Enterprise-grade vector search solutions.Azure AI Search
Microsoft’s cloud search service with vector capabilities.@langchain/community/vectorstores/azure_aisearchRequires:
@azure/search-documents
Elasticsearch
Popular search and analytics engine with vector support. Module:@langchain/community/vectorstores/elasticsearchRequires:
@elastic/elasticsearch
OpenSearch
AWS’s open-source search and analytics suite. Module:@langchain/community/vectorstores/opensearchRequires:
@opensearch-project/opensearch
Rockset
Real-time analytics database with vector search. Module:@langchain/community/vectorstores/rocksetRequires:
@rockset/client
Vectara
Managed vector search and semantic search platform. Module:@langchain/community/vectorstores/vectara
MyScale
ClickHouse-based vector database. Module:@langchain/community/vectorstores/myscaleRequires:
@clickhouse/client
Cloud Platform Vector Stores
Vector stores integrated with cloud platforms.Google Vertex AI Vector Search
Google Cloud’s vector search service. Module:@langchain/community/vectorstores/googlevertexaiRequires:
google-auth-library
Convex
Backend platform with vector search. Module:@langchain/community/vectorstores/convexRequires:
convex
Firebase
For Firestore vector search, integration coming soon.Xata
Serverless database with vector search. Module:@langchain/community/vectorstores/xataRequires:
@xata.io/client
Upstash
Serverless Redis with vector support. Module:@langchain/community/vectorstores/upstashRequires:
@upstash/vector
Azion EdgeSQL
Edge computing with vector storage. Module:@langchain/community/vectorstores/azion_edgesqlRequires:
azion
LibSQL
LibSQL (Turso) with vector support. Module:@langchain/community/vectorstores/libsqlRequires:
@libsql/client
Specialized Vector Stores
Milvus
Open-source vector database for scalable similarity search. Module:@langchain/community/vectorstores/milvusRequires:
@zilliz/milvus2-sdk-node
AstraDB
DataStax Astra DB with vector search. Module:@langchain/community/vectorstores/astradbRequires:
@datastax/astra-db-ts
Neo4j
Graph database with vector search capabilities. Module:@langchain/community/vectorstores/neo4j_vectorRequires:
neo4j-driver
SAP HANA
SAP HANA Cloud with vector engine. Module:@langchain/community/vectorstores/hanavectorRequires:
hdb
AnalyticDB
Alibaba Cloud’s analytics database with vector support. Module:@langchain/community/vectorstores/analyticdb
Momento
Serverless cache with vector index. Module:@langchain/community/vectorstores/momento_vector_indexRequires:
@gomomento/sdk-core
Zep
Long-term memory store for AI assistants. Modules:@langchain/community/vectorstores/zep- Self-hosted@langchain/community/vectorstores/zep_cloud- Cloud version
@getzep/zep-js or @getzep/zep-cloud
Tigris
Serverless NoSQL with vector search. Module:@langchain/community/vectorstores/tigris
Turbopuffer
Fast vector storage and search. Module:@langchain/community/vectorstores/turbopuffer
Typesense
Open-source search engine with vector support. Module:@langchain/community/vectorstores/typesenseRequires:
typesense
Prisma
ORM with vector search support. Module:@langchain/community/vectorstores/prisma
Common Operations
Creating a Vector Store
Adding Documents
Searching
Filtering
Deleting
As Retriever
Best Practices
- Choose the right store - Consider scale, performance, and cost
- Use appropriate embeddings - Match embedding dimensions to your model
- Optimize chunk size - Typically 200-500 tokens per chunk
- Add metadata - Include source, timestamps, and other searchable fields
- Use filters - Narrow search scope for better performance
- Consider MMR - For diverse results, use max marginal relevance
- Batch operations - Add documents in batches for better performance
- Monitor performance - Track search latency and relevance
Choosing a Vector Store
For prototyping:- FAISS (local, fast, simple)
- HNSWlib (local, persistent)
- Chroma (easy setup, good DX)
- Pinecone (managed, reliable)
- Weaviate (flexible, scalable)
- Qdrant (high performance)
- Azure AI Search (enterprise)
- Milvus (highly scalable)
- Weaviate (open-source)
- PostgreSQL + pgvector (existing infra)
- Voy (WASM-based)
- CloseVector (web support)
Next Steps
- Retrievers - Retrieve documents from vector stores
- Embeddings - Generate embeddings
- RAG Tutorial - Build a RAG application
