RAG & Retrieval·Question 97 of 100Quick-fire

In scenarios where an LLM encounters out-of-vocabulary words during embedding generation, propose strategies for handling such cases.

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

To handle out-of-vocabulary (OOV) words, strategies include:

Subword Tokenization: Breaking down OOV words into known subwords or characters and aggregating their embeddings.

Full worked answer

To handle out-of-vocabulary (OOV) words, strategies include:

Subword Tokenization: Breaking down OOV words into known subwords or characters and aggregating their embeddings.

Zero or Random Initialization: Assigning a zero or randomly generated vector for OOV words, optionally fine-tuning these embeddings if training data is available.

Fallback to Similar Words: Using embeddings of semantically or morphologically similar words as a proxy for OOV words.

What a good answer covers

  • Subword Tokenization: Breaking down OOV words into known subwords or characters and aggregating their…
  • Zero or Random Initialization
  • Fallback to Similar Words

Key terms: Subword Tokenization · Zero or Random Initialization · Fallback to Similar Words

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep