What is temperature in LLM sampling?
Simple meaning
Temperature rescales the logits before the token distribution is sampled.
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.
Temperature rescales the logits before the token distribution is sampled.
Open the full page for Why, Steps, Example and Key takeaway.
Temperature zero makes decoding greedy: the highest-probability token is chosen at each step.
Open the full page for Why, Steps, Example and Key takeaway.
Top-p sampling keeps the smallest set of tokens whose probabilities sum to p, then samples from that set.
Open the full page for Why, Steps, Example and Key takeaway.
Fine-tuning continues training on your examples so weights change.
Open the full page for Why, Steps, Example and Key takeaway.
Choose RAG when knowledge must stay fresh, be cited, or remain outside the weights for privacy reasons.
Open the full page for Why, Steps, Example and Key takeaway.
Instruction tuning is supervised fine-tuning on prompts paired with desired responses.
Open the full page for Why, Steps, Example and Key takeaway.
LangChain is a framework for wiring prompts, models, retrievers, tools, and memory into applications.
Open the full page for Why, Steps, Example and Key takeaway.
A chain is a pipeline that passes data through prompt templates, models, parsers, and other steps.
Open the full page for Why, Steps, Example and Key takeaway.
A simple chain follows a fixed graph of steps.
Open the full page for Why, Steps, Example and Key takeaway.
Function calling lets the model request a structured tool invocation instead of only free text.
Open the full page for Why, Steps, Example and Key takeaway.
Downstream code needs fields it can parse, not a paragraph.
Open the full page for Why, Steps, Example and Key takeaway.
Evals are tests that score model or prompt quality on a dataset.
Open the full page for Why, Steps, Example and Key takeaway.
A golden dataset is a curated set of inputs with expected answers or grading notes.
Open the full page for Why, Steps, Example and Key takeaway.
LLM-as-a-judge uses another model to score an answer against a rubric.
Open the full page for Why, Steps, Example and Key takeaway.
Prompt injection is hostile text that tries to override your instructions, often by saying ignore previous rules.
Open the full page for Why, Steps, Example and Key takeaway.
Guardrails are checks that filter inputs and outputs for policy, PII, jailbreaks, and schema validity.
Open the full page for Why, Steps, Example and Key takeaway.
PII is personally identifiable information such as names, emails, and IDs.
Open the full page for Why, Steps, Example and Key takeaway.
RLHF is reinforcement learning from human feedback.
Open the full page for Why, Steps, Example and Key takeaway.
Most APIs bill per million tokens, often with different rates for input and output.
Open the full page for Why, Steps, Example and Key takeaway.
Generation is autoregressive and more expensive to serve than a single prompt encode.
Open the full page for Why, Steps, Example and Key takeaway.