Vector Stores#
Vector stores contain embedding vectors of ingested document chunks (and sometimes the document chunks as well).
Simple Vector Store#
By default, LlamaIndex uses a simple in-memory vector store that's great for quick experimentation.
They can be persisted to (and loaded from) disk by calling vector_store.persist()
(and SimpleVectorStore.from_persist_path(...)
respectively).
Vector Store Options & Feature Support#
LlamaIndex supports over 20 different vector store options. We are actively adding more integrations and improving feature coverage for each.
Vector Store | Type | Metadata Filtering | Hybrid Search | Delete | Store Documents | Async |
---|---|---|---|---|---|---|
Alibaba Cloud OpenSearch | cloud | ✓ | ✓ | ✓ | ✓ | |
Apache Cassandra® | self-hosted / cloud | ✓ | ✓ | ✓ | ||
Astra DB | cloud | ✓ | ✓ | ✓ | ||
Azure AI Search | cloud | ✓ | ✓ | ✓ | ✓ | |
Azure CosmosDB MongoDB | cloud | ✓ | ✓ | |||
BaiduVectorDB | cloud | ✓ | ✓ | ✓ | ||
ChatGPT Retrieval Plugin | aggregator | ✓ | ✓ | |||
Chroma | self-hosted | ✓ | ✓ | ✓ | ||
Couchbase | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
DashVector | cloud | ✓ | ✓ | ✓ | ✓ | |
Databricks | cloud | ✓ | ✓ | ✓ | ||
Deeplake | self-hosted / cloud | ✓ | ✓ | ✓ | ||
DocArray | aggregator | ✓ | ✓ | ✓ | ||
DuckDB | in-memory / self-hosted | ✓ | ✓ | ✓ | ||
DynamoDB | cloud | ✓ | ||||
Elasticsearch | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | ✓ |
FAISS | in-memory | |||||
Google AlloyDB | cloud | ✓ | ✓ | ✓ | ✓ | |
Google Cloud SQL Postgres | cloud | ✓ | ✓ | ✓ | ✓ | |
Hnswlib | in-memory | |||||
txtai | in-memory | |||||
Jaguar | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
LanceDB | cloud | ✓ | ✓ | ✓ | ||
Lantern | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | ✓ |
Metal | cloud | ✓ | ✓ | ✓ | ||
MongoDB Atlas | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
MyScale | cloud | ✓ | ✓ | ✓ | ✓ | |
Milvus / Zilliz | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
Neo4jVector | self-hosted / cloud | ✓ | ✓ | ✓ | ||
OpenSearch | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | ✓ |
Pinecone | cloud | ✓ | ✓ | ✓ | ✓ | |
Postgres | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | ✓ |
pgvecto.rs | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
Qdrant | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | ✓ |
Redis | self-hosted / cloud | ✓ | ✓ | ✓ | ||
Simple | in-memory | ✓ | ✓ | |||
SingleStore | self-hosted / cloud | ✓ | ✓ | ✓ | ||
Supabase | self-hosted / cloud | ✓ | ✓ | ✓ | ||
Tablestore | cloud | ✓ | ✓ | ✓ | ✓ | |
Tair | cloud | ✓ | ✓ | ✓ | ||
TiDB | cloud | ✓ | ✓ | ✓ | ||
TencentVectorDB | cloud | ✓ | ✓ | ✓ | ✓ | |
Timescale | ✓ | ✓ | ✓ | ✓ | ||
Typesense | self-hosted / cloud | ✓ | ✓ | ✓ | ||
Upstash | cloud | ✓ | ||||
Vearch | self-hosted | ✓ | ✓ | ✓ | ||
Vespa | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
Vertex AI Vector Search | cloud | ✓ | ✓ | ✓ | ||
Weaviate | self-hosted / cloud | ✓ | ✓ | ✓ | ✓ | |
WordLift | cloud | ✓ | ✓ | ✓ | ✓ | ✓ |
For more details, see Vector Store Integrations.
Example Notebooks#
- Alibaba Cloud OpenSearch
- Astra DB
- Async Index Creation
- Azure AI Search
- Azure Cosmos DB
- Baidu
- Caasandra
- Chromadb
- Couchbase
- Dash
- Databricks
- Deeplake
- DocArray HNSW
- DocArray in-Memory
- DuckDB
- Espilla
- Google AlloyDB for PostgreSQL
- Google Cloud SQL for PostgreSQL
- Jaguar
- LanceDB
- Lantern
- Metal
- Milvus
- Milvus Hybrid Search
- MyScale
- ElasticSearch
- FAISS
- Hnswlib
- MongoDB Atlas
- Neo4j
- OpenSearch
- Pinecone
- Pinecone Hybrid Search
- PGvectoRS
- Postgres
- Redis
- Qdrant
- Qdrant Hybrid Search
- Rockset
- Simple
- Supabase
- Tablestore
- Tair
- TiDB
- Tencent
- Timesacle
- Upstash
- Vearch
- Vespa
- Vertex AI Vector Search
- Weaviate
- Weaviate Hybrid Search
- WordLift
- Zep