Testing with Generative AI study guide
Vector Databases & Embeddings
Embeddings are mathematical arrays (vectors) that represent the semantic meaning of text. A Vector Database stores these embeddings, allowing RAG systems to perform similarity searches to instantly find documents that are conceptually related to a user's prompt.
Practical example
The word "Apple" (fruit) and "Apple" (company) have different vector coordinates. When a user asks "How do I fix my iPhone?", the system converts this prompt to a vector, searches the Vector DB, and retrieves the closest matching documents (e.g., Apple repair manuals) based on geometric proximity (Cosine distance).
Exam scenario and common trap
Scenario: A RAG system retrieves documents about "river banks" when the user asks about "bank loans." The Trap: "The Vector DB is corrupted." The Correct Answer: The Embedding Model used to convert the text is too weak or lacks context awareness, failing to map the semantic difference between the two definitions of "bank".
Related syllabus sections cover this topic. Reference sections: 4.1.1–4.1.2. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.