Part of a series on |
Machine learning and data mining |
---|
![]() |
A vector database management system (VDBMS) or simply vector database or vector store is a database that can store vectors (fixed-length lists of numbers) along with other data items. Vector databases typically implement one or more Approximate Nearest Neighbor (ANN) algorithms,[1][2] so that one can search the database with a query vector to retrieve the closest matching database records.
The vectors stored in a vector database are typically high-dimensional and represent features of some raw data items such as text documents, images or videos. These feature vectors may be computed from the raw data using machine learning methods such as feature extraction algorithms, word embeddings[3] or deep learning networks. The goal is that semantically similar data items receive feature vectors that are close to each other.
Vector databases are used to conduct Semantic Similarity Search useful when building product recommenders, Image/Audio/Video Similarity Search, and anomaly detection.
Vector databases are also used to implement Retrieval-Augmented Generation (RAG), a method to improve domain-specific responses of large language models. Text documents describing the domain of interest are collected and for each document a feature vector (known as an "embedding") is computed, typically using a deep learning network, and stored in a vector database. Given a user prompt, the feature vector of the prompt is computed and the database is queried to retrieve the most relevant documents. These are then automatically added into the context window of the large language model and the large language model proceeds to create a response to the prompt given this context.[4]
List of vector databases
Name | License |
---|---|
Apache Cassandra [5][6] | Apache License 2.0 |
LlamaIndex [7] | MIT License[8] |
Milvus [9][10] | Apache License 2.0 |
Pinecone [11] | Closed source |
Postgres with pgvector [12] | PostgreSQL License[13] |
Qdrant [14] | Apache License 2.0[15] |
Weaviate [16] | BSD 3-Clause[17] |
Chroma[18][19] | Apache License 2.0[20] |
Elasticsearch [21] | Server Side Public License, Elastic License [22] |
Vespa [23] | Apache License 2.0[24] |
References
- ↑ Roie Schwaber-Cohen. "What is a Vector Database & How Does it Work". Pinecone. Retrieved 18 November 2023.
- ↑ "What is a vector database". Elastic. Retrieved 18 November 2023.
- ↑ Evan Chaki (2023-07-31). "What is a vector database?". Microsoft.
A vector database is a type of database that stores data as high-dimensional vectors, which are mathematical representations of features or attributes.
- ↑ Lewis, Patrick; Perez, Ethan; Piktus, Aleksandra; Petroni, Fabio; Karpukhin, Vladimir; Goyal, Naman; Küttler, Heinrich (2020). "Retrieval-augmented generation for knowledge-intensive NLP tasks". Advances in Neural Information Processing Systems 33: 9459–9474.
- ↑ "5 Hard Problems in Vector Search, and How Cassandra Solves Them". TheNewStack. 2023-09-22. Retrieved 2023-09-22.
- ↑ "Vector Search quickstart". Retrieved 2023-11-21.
- ↑ Wiggers, Kyle (2023-06-06). "LlamaIndex adds private data to large language models". TechCrunch. Retrieved 2023-10-29.
- ↑ "llama_index/LICENSE at main · run-llama/llama_index". GitHub. Retrieved 2023-10-29.
- ↑ "Open Source Vector Database – Milvus – LFAI & DATA". Retrieved 29 October 2023.
- ↑ Liao, Ingrid Lunden and Rita (2022-08-24). "Zilliz raises $60M, relocates to SF". TechCrunch. Retrieved 2023-10-29.
- ↑ "Pinecone leads 'explosion' in vector databases for generative AI". VentureBeat. 2023-07-14. Retrieved 2023-10-29.
- ↑ "pgvector". GitHub. Retrieved 2023-11-27.
- ↑ "pgvector/License". GitHub. Retrieved 2023-11-27.
- ↑ Sawers, Paul (2023-04-19). "Qdrant, an open source vector database startup, wants to help AI developers leverage unstructured data". TechCrunch. Retrieved 2023-10-29.
- ↑ "qdrant/LICENSE at master · qdrant/qdrant". GitHub. Retrieved 2023-10-29.
- ↑ "Weaviate reels in $50M for its AI-optimized vector database". SiliconANGLE. 2023-04-21. Retrieved 2023-10-29.
- ↑ "weaviate/LICENSE at master · weaviate/weaviate". GitHub. Retrieved 2023-10-29.
- ↑ Palazzolo, Stephanie. "Vector database Chroma scored $18 million in seed funding at a $75 million valuation. Here's why its technology is key to helping generative AI startups". Business Insider. Retrieved 2023-11-16.
- ↑ MSV, Janakiram (2023-07-28). "Exploring Chroma: The Open Source Vector Database for LLMs". The New Stack. Retrieved 2023-11-16.
- ↑ https://github.com/chroma-core/chroma/blob/main/LICENSE
- ↑ Kerner, Sean (23 May 2023). "Elasticsearch Relevance Engine brings new vectors to generative AI". VentureBeat. Retrieved 18 November 2023.
- ↑ https://github.com/elastic/elasticsearch/blob/main/LICENSE.txt
- ↑ Riley, Duncan (4 October 2023). "Yahoo spins off AI scaling engine Vespa as an independent company". siliconANGLE. Retrieved 18 November 2023.
- ↑ https://github.com/vespa-engine/vespa/blob/master/LICENSE