-
Book Overview & Buying
-
Table Of Contents
RAG from First Principles
By :
Vector stores are optimized for storing and retrieving high-dimensional vectors efficiently. Unlike traditional scalar-based databases, vector stores are designed to manage complex vector embeddings and support fast similarity search, enabling rapid query responses and improved data retrieval performance.
In this chapter, we first explored the default vector storage mechanism in LlamaIndex and examined how vector indexes are constructed in RAG systems. We then introduced the main components of vector databases, compared several mainstream vector database solutions, and used Milvus as a practical example to explain index types, similarity metrics, and search configurations.
We also discussed how vector storage extends beyond dense vectors to include sparse vectors and binary vectors. These different vector formats provide the foundation for hybrid retrieval, where semantic search and keyword-based retrieval can be combined to improve search relevance. In addition, we...