Skip to main content

Vector stores

A vector store stores embedded data and performs similarity search.

Pick your embedding model:

Install dependencies

yarn add @langchain/openai
OPENAI_API_KEY=your-api-key
import { OpenAIEmbeddings } from "@langchain/openai";

const embeddings = new OpenAIEmbeddings({
model: "text-embedding-3-large"
});

Pick your vector store:

Install dependencies

yarn add langchain
import { MemoryVectorStore } from "langchain/vectorstores/memory";

const vectorStore = new MemoryVectorStore(embeddings);

LangChain.js integrates with a variety of vector stores. You can check out a full list below:

NameDescription
AnalyticDBAnalyticDB for PostgreSQL is a massively parallel processing (MPP) da...
Astra DBOnly available on Node.js.
Azure AI SearchAzure AI Search (formerly known as Azure Search and Azure Cognitive S...
Azure Cosmos DB for MongoDB vCoreAzure Cosmos DB for MongoDB vCore makes it easy to create a database ...
Azure Cosmos DB for NoSQLAzure Cosmos DB for NoSQL provides support for querying items with fl...
CassandraOnly available on Node.js.
ChromaChroma is a AI-native
ClickHouseOnly available on Node.js.
CloseVectoravailable on both browser and Node.js
Cloudflare VectorizeIf you're deploying your project in a Cloudflare worker, you can use ...
ConvexLangChain.js supports Convex as a vector store, and supports the stan...
CouchbaseCouchbase is an award-winning distributed NoSQL cloud database that d...
ElasticsearchElasticsearch is a
FaissFaiss is a library for
Google Vertex AI Matching EngineOnly available on Node.js.
SAP HANA Cloud Vector EngineSAP HANA Cloud Vector Engine is a vector store fully integrated into ...
HNSWLibHNSWLib is an in-memory vector store that can be saved to a file. It
LanceDBLanceDB is an embedded vector database for AI applications. It is ope...
libSQLTurso is a SQLite-compatible database built on libSQL, the Open Contr...
In-memoryLangChain offers is an in-memory, ephemeral vectorstore that stores
MilvusMilvus is a vector database built for embeddings similarity search an...
Momento Vector Index (MVI)MVI: the most productive, easiest to use, serverless vector index for...
MongoDB AtlasThis guide provides a quick overview for getting started with MongoDB
MyScaleOnly available on Node.js.
Neo4j Vector IndexNeo4j is an open-source graph database with integrated support for ve...
Neon PostgresNeon is a fully managed serverless PostgreSQL database. It separates ...
OpenSearchOnly available on Node.js.
PGVectorTo enable vector search in generic PostgreSQL databases, LangChain.js
PineconePinecone is a vector database that helps
PrismaFor augmenting existing models in PostgreSQL database with vector sea...
QdrantQdrant is a vector similarity search engine. It
RedisRedis is a fast open source, in-memory data store.
RocksetRockset is a real-time analyitics SQL database that runs in the cloud.
SingleStoreSingleStoreDB is a robust, high-performance distributed SQL database ...
SupabaseSupabase is an open-source Firebase
TigrisTigris makes it easy to build AI applications with vector embeddings.
TurbopufferSetup
TypeORMTo enable vector search in a generic PostgreSQL database, LangChain.j...
TypesenseVector store that utilizes the Typesense search engine.
Upstash VectorUpstash Vector is a REST based serverless vector
USearchOnly available on Node.js.
VectaraVectara is a platform for building GenAI applications. It provides an...
Vercel PostgresLangChain.js supports using the @vercel/postgres package to use gener...
VoyVoy is a WASM vector similarity search engine written in Rust.
WeaviateWeaviate is an open source vector database that
XataXata is a serverless data platform, based on PostgreSQL. It provides ...
Zep Open SourceZep is a long-term memory service for AI Assistant apps.
Zep CloudZep is a long-term memory service for AI Assistant apps.

Was this page helpful?


You can also leave detailed feedback on GitHub.