GenAI Basics · Question 6 · Medium

What is a text embedding?

  1. A compressed ZIP copy of the text
  2. An image generated from the text
  3. A numeric vector that represents the meaning of the text, so that similar texts have nearby vectors
  4. A list of the words in the text in alphabetical order
Answer and explanation

Answer: C. A numeric vector that represents the meaning of the text, so that similar texts have nearby vectors

Explanation: Embedding models map text to dense vectors in a semantic space. Semantically similar texts end up close together, which enables semantic search and clustering.

Previous: What is few-shot prompting? · Next: What is the cosine similarity between the vectors (3, 4) and (6, 8)?

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