GenAI Basics · Question 26 · Medium

In a RAG system, what is the main purpose of a vector database?

  1. Storing embeddings and quickly finding the vectors most similar to a query vector
  2. Storing the model's weights during training
  3. Translating text between languages
  4. Compressing images for faster upload
Answer and explanation

Answer: A. Storing embeddings and quickly finding the vectors most similar to a query vector

Explanation: Document chunks are stored as embedding vectors. At query time the query is embedded, and the vector database returns the nearest chunks, using measures such as cosine similarity.

Previous: An AI email assistant summarises incoming emails. One email contains hidden… · Next: A query embedding is q = (1, 2, 2). Four document embeddings are: D1 = (2, 1…

Practise genai basics

Try a fresh set of genai basics questions with an explanation after every answer, free and without signing up: GenAI Basics practice. Or sit a full placement mock test.

More genai basics questions

More technical & programming practice

Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms · Object-Oriented Programming · DBMS

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge