1.2 Select model tasks to accomplish a given business requirement
1.Which model task is primarily designed to convert textual data into a dense, numerical vector representation, which is useful for tasks like semantic search and clustering?
- A.Embedding
- B.Text Generation
- C.Tokenization
- D.Classification
Show answer & explanation
Correct answer: A — Embedding
- A. Correct. Embedding is the process of converting textual data into dense, numerical vector representations. These vectors capture the semantic meaning of the text, making them ideal for downstream tasks like semantic search, clustering, and retrieval-augmented generation (RAG) where understanding context and similarity is crucial.
- B. Incorrect. Text generation is the task of producing new, human-like text based on an input prompt. While it uses internal vector representations, its primary output is text, not the vector itself for use in other applications.
- C. Incorrect. Tokenization is a crucial preprocessing step where text is broken down into smaller units called tokens (e.g., words or subwords). It is a necessary precursor to embedding but is not the process of creating the final dense numerical vector.
- D. Incorrect. Classification is a supervised learning task that assigns a predefined label or category to input text. While classification models may use embeddings internally, their primary function is to predict a category, not to output a vector representation for general use.