GenAI / LLM track

GenAI and LLM interview questions

Panel-ready GenAI / LLM questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

41 Easy Temperature GenAI / LLM

What is temperature in LLM sampling?

Short take Full answer on next page

Simple meaning

Temperature rescales the logits before the token distribution is sampled.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
42 Easy Temperature GenAI / LLM

What happens if you set temperature to zero?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
43 Easy Temperature GenAI / LLM

What is top-p or nucleus sampling?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
44 Easy Fine-tuning vs RAG GenAI / LLM

What is fine-tuning an LLM?

Short take Full answer on next page

Simple meaning

Fine-tuning continues training on your examples so weights change.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
45 Easy Fine-tuning vs RAG GenAI / LLM

When would you choose RAG over fine-tuning?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
46 Easy Fine-tuning vs RAG GenAI / LLM

What is instruction tuning?

Short take Full answer on next page

Simple meaning

Instruction tuning is supervised fine-tuning on prompts paired with desired responses.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
47 Easy LangChain GenAI / LLM

What is LangChain?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
48 Easy LangChain GenAI / LLM

What is a chain in LangChain?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
50 Easy Function calling GenAI / LLM

What is function calling or tool use in LLMs?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
51 Easy Function calling GenAI / LLM

Why is structured output useful?

Short take Full answer on next page

Simple meaning

Downstream code needs fields it can parse, not a paragraph.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
52 Easy Evals GenAI / LLM

What are LLM evaluations or evals?

Short take Full answer on next page

Simple meaning

Evals are tests that score model or prompt quality on a dataset.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
53 Easy Evals GenAI / LLM

What is a golden dataset for LLM testing?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
54 Easy Evals GenAI / LLM

What is LLM-as-a-judge?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
55 Easy Safety GenAI / LLM

What is prompt injection?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
56 Easy Safety GenAI / LLM

What are guardrails in a GenAI product?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
57 Easy Safety GenAI / LLM

What is PII and why does it matter for LLMs?

Short take Full answer on next page

Simple meaning

PII is personally identifiable information such as names, emails, and IDs.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
58 Easy Safety GenAI / LLM

What is RLHF at a high level?

Short take Full answer on next page

Simple meaning

RLHF is reinforcement learning from human feedback.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
59 Easy Cost GenAI / LLM

How do LLM APIs typically bill?

Short take Full answer on next page

Simple meaning

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.

Read full answer Example · Mistake · Say this
Prev Page 3 of 12 Next
Chat with us