A vector database stores embeddings and finds the closest matches to a query vector quickly, which is what lets a RAG system retrieve the right passages from millions of documents in milliseconds.
Once your documents are embeddings, you need somewhere to keep them and a fast way to ask "which of these is nearest to my question." That is a vector database: Pinecone, Weaviate, pgvector on Postgres, and others.
For most teams we start with pgvector because the data is already in Postgres, and move to a dedicated store only when scale demands it.
Saraswati Stitch®contact@saraswatistitch.com