Vector databases are specialized in storing high-dimensional vectors efficiently and finding the nearest neighbors to a query. This allows semantically similar documents to be identified even when they share no common keywords. Well-known solutions include Pinecone, Weaviate, Qdrant, and pgvector as an extension for Postgres. In RAG systems they supply the relevant passages that are given to the model as context.
