Question 1
A retail company stores thousands of product descriptions and wants a search feature that returns products that are **semantically similar** to a shopper's typed phrase, even when the shopper's wording does not match the product text word-for-word. The team plans to convert each product description into a numeric representation that captures its meaning, store those representations, and compare them by mathematical distance. What are these numeric representations called?
A. EmbeddingsCorrect answer
Correct. An embedding is a numerical vector representation of content whose position in vector space captures meaning, so semantically similar items sit close together and can be compared by mathematical distance — exactly what semantic search needs.
B. Tokens
Confuses tokens with embeddings. A token is a chunk of text (a word or subword piece) that the model reads and generates; token counts drive context limits and cost, but a token is not the numeric meaning representation used for similarity comparison.
C. Prompts
Confuses the input instruction with the stored representation. A prompt is the natural-language text a user supplies to guide a model's output; it is not a stored numeric encoding of a document's meaning.
D. Hyperparameters
Confuses training configuration with data representation. Hyperparameters are settings such as learning rate or batch size chosen before training; they describe how a model is trained, not the meaning of a piece of content.
Explanation
Embeddings are numerical vector representations of content — text, images, or other data — arranged so that items with similar meaning are close together in vector space, which is what makes distance-based semantic search possible. Tokens are the text chunks a model processes and are counted for context and cost, not compared for meaning. A prompt is the instruction text given to a model at inference time, and hyperparameters are training-time configuration settings; neither encodes the meaning of a stored document. See AWS — What is Generative AI? (https://aws.amazon.com/what-is/generative-ai/).