How does subword tokenization help with rare and unknown words?
Simple meaning
A fixed word vocabulary would map rares to unknown and explode in size.
Open the full page for Why, Steps, Example and Key takeaway.
Panel-ready GenAI / LLM questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.
A fixed word vocabulary would map rares to unknown and explode in size.
Open the full page for Why, Steps, Example and Key takeaway.
Many BPE vocabularies treat capitalization and leading spaces as part of the token.
Open the full page for Why, Steps, Example and Key takeaway.
Use the same tokenizer the model uses, such as tiktoken for many OpenAI models.
Open the full page for Why, Steps, Example and Key takeaway.
Higher dimensions can hold more nuance but cost more storage, RAM, and distance compute.
Open the full page for Why, Steps, Example and Key takeaway.
Dense vectors are short learned embeddings where every dimension is used.
Open the full page for Why, Steps, Example and Key takeaway.
After unit normalization, inner product equals cosine similarity, which simplifies indexes and scores.
Open the full page for Why, Steps, Example and Key takeaway.
A bi-encoder embeds query and document separately so documents can be precomputed.
Open the full page for Why, Steps, Example and Key takeaway.
Residuals add the block input to its output so gradients flow through deep stacks.
Open the full page for Why, Steps, Example and Key takeaway.
After attention mixes information across tokens, a position-wise MLP transforms each token independently.
Open the full page for Why, Steps, Example and Key takeaway.
Encoder-decoder models such as T5 shine at transduction: translate, summarize, or map a full input to a structured output.
Open the full page for Why, Steps, Example and Key takeaway.
Self-attention uses queries, keys, and values from the same sequence.
Open the full page for Why, Steps, Example and Key takeaway.
Every token attends to every other token, so scores scale as n times n.
Open the full page for Why, Steps, Example and Key takeaway.
During decoding, keys and values for past tokens are reused instead of recomputed.
Open the full page for Why, Steps, Example and Key takeaway.
BERT sees tokens on both sides of a masked position, which helps disambiguation for NLU.
Open the full page for Why, Steps, Example and Key takeaway.
Masked LM hides random tokens and reconstructs them from the full sentence.
Open the full page for Why, Steps, Example and Key takeaway.
State the role, allowed tools, output schema, and what to do when information is missing.
Open the full page for Why, Steps, Example and Key takeaway.
Prompts are code.
Open the full page for Why, Steps, Example and Key takeaway.
ReAct interleaves reasoning traces with actions such as search or calculator calls.
Open the full page for Why, Steps, Example and Key takeaway.
You constrain the model to emit valid JSON or schema-shaped text.
Open the full page for Why, Steps, Example and Key takeaway.
The query may be rewritten, then hybrid search returns top chunks, optionally reranked.
Open the full page for Why, Steps, Example and Key takeaway.