A vector database stores embedding vectors so retrieval-augmented generation workflows can find context related to a prompt. Documents are split, embedded, stored, and later searched by similarity. section 9.3.2
A practical preparation and retrieval workflow is:
- Load documents into memory and add any user-specific context. section 9.3.2
In-memory RAG store
LangChain's InMemoryVectorStore uses OpenAIEmbeddings with model text-embedding-3-large; a retrieve function searches it and supplies matching documents to generation.

























