Vector Stores
Vector stores contain embedding vectors of ingested document chunks (and sometimes the document chunks as well).
Simple Vector Store
Section titled โ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
Section titled โ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 Mongo vCore | cloud | โ | โ | |||
| Azure CosmosDB NoSql | 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 | โ | โ | โ | โ | โ |
| 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 | โ | โ | โ | ||
| S3 | cloud | โ | โ | โ | โ* (using asyncio.to_thread) | |
| 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
Section titled โExample Notebooksโ- Alibaba Cloud OpenSearch
- Astra DB
- Async Index Creation
- Azure AI Search
- Azure Cosmos DB Mongo vCore
- Azure Cosmos DB NoSql
- 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
- Milvus
- Milvus Async API
- Milvus Full-Text Search
- Milvus Hybrid Search
- MyScale
- ElasticSearch
- FAISS
- Hnswlib
- MongoDB Atlas
- Neo4j
- OpenSearch
- Pinecone
- Pinecone Hybrid Search
- PGvectoRS
- Postgres
- Redis
- Qdrant
- Qdrant Hybrid Search
- Rockset
- S3
- Simple
- Supabase
- Tablestore
- Tair
- TiDB
- Tencent
- Timesacle
- Upstash
- Vearch
- Vespa
- Vertex AI Vector Search
- Weaviate
- Weaviate Hybrid Search
- WordLift
- Zep