AWS AI Practitioner AIF-C01 · Fundamentals of Generative AI · medium

How do Vector Embeddings enable semantic search in a Retrieval-Augmented Generation (RAG) system?

Published · Last updated · checked before publication — how we verify questions

Options

  • AThey compress PDF files into encrypted ZIP archives for cold storage
  • BThey map text into vectors where similar meanings cluster closelyCorrect answer
  • CThey replace SQL primary keys with random auto-incrementing integers
  • DThey execute Python code inside an AWS Lambda container environment

Answer: B. They map text into vectors where similar meanings cluster closely

An embedding model (such as Amazon Titan Text Embeddings) converts words, sentences, or multimodal inputs into dense numerical vectors in a high-dimensional space where semantically similar concepts are positioned close together (measured via cosine similarity, dot product, or Euclidean distance), enabling retrieval by meaning rather than exact keyword overlap.

Why the other options are wrong

  • A. They compress PDF files into encrypted ZIP archives for cold storage — Vector embeddings are numerical floating-point arrays representing semantic meaning, not lossless file compression archives.
  • C. They replace SQL primary keys with random auto-incrementing integers — Auto-incrementing integers carry no semantic meaning or cosine similarity relationship.
  • D. They execute Python code inside an AWS Lambda container environment — Embeddings are numeric representations produced by neural networks, not executable runtime containers.

All Fundamentals of Generative AI questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.