Semantic similarity estimates how closely two texts match in meaning. In retrieval-augmented generation (RAG), it helps find relevant passages even when a question and passage do not use the same words. section 6.3.2
From question to relevant passage
A chatbot question is converted into a vector using the same embedding model as the indexed document chunks. The vector database searches for passages with similar meaning, which are passed to the language model to generate a response. section 6.3.2
Figure 6.9 RAG uses a vector database during build time and run time.
See how vector-database retrieval supports RAG during preparation and at runtime. section 6.3.2




