vector_database
// A special kind of database that searches by meaning, not exact words
๐Ÿ’ก The core idea: A regular database finds rows that exactly match your search. A vector database finds items that are similar in meaning. You ask "find documents about fixing cars" and it returns results about "automobile repair" and "mechanic tips" โ€” even if those words never appeared in your query. It does this by converting text to numbers (vectors) and measuring distance between them.
Click any word to find similar words
Click any word below to search for the most similar words (nearest neighbors)
Regular DB vs Vector DB
A regular database: SELECT * FROM docs WHERE text LIKE '%car%'. A vector database: "give me the 5 documents with the closest meaning to my query." The difference is that vectors capture meaning โ€” "vehicle" and "automobile" are close vectors even though they're different words.
SEARCHES BY MEANINGUSED IN EVERY RAG SYSTEM
also by echobash