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.

62 Moderate Chunking GenAI / LLM

What is parent-document retrieval?

Short take Full answer on next page

Simple meaning

You embed small child chunks for precise search, then return a larger parent section to the LLM.

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

Read full answer Example · Mistake · Say this
65 Moderate Hybrid search GenAI / LLM

How do you fuse BM25 hits with vector hits?

Short take Full answer on next page

Simple meaning

Common methods are reciprocal rank fusion, weighted score mixes after normalization, or a learned reranker on the union.

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

Read full answer Example · Mistake · Say this
66 Moderate Hybrid search GenAI / LLM

When does keyword search beat semantic search?

Short take Full answer on next page

Simple meaning

Exact SKUs, error codes, names, and legal citations often fail in embedding space.

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

Read full answer Example · Mistake · Say this
67 Moderate Hybrid search GenAI / LLM

What is reciprocal rank fusion?

Short take Full answer on next page

Simple meaning

RRF combines ranked lists by summing 1 over k plus rank for each document across systems.

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

Read full answer Example · Mistake · Say this
68 Moderate Hybrid search GenAI / LLM

What is Maximal Marginal Relevance in retrieval?

Short take Full answer on next page

Simple meaning

MMR reranks hits to balance relevance with diversity so near-duplicate chunks do not fill the prompt.

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

Read full answer Example · Mistake · Say this
70 Moderate Prompting GenAI / LLM

Why does streaming matter in LLM APIs?

Short take Full answer on next page

Simple meaning

Streaming sends tokens as they are generated instead of waiting for the full completion.

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

Read full answer Example · Mistake · Say this
71 Moderate RAG GenAI / LLM

What is Retrieval Augmented Generation?

Short take Full answer on next page

Simple meaning

RAG searches your documents first, then feeds relevant chunks into the LLM prompt.

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

Read full answer Example · Mistake · Say this
72 Moderate Embeddings GenAI / LLM

What are text embeddings?

Short take Full answer on next page

Simple meaning

Embeddings are numeric vectors that place similar meanings near each other.

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

Read full answer Example · Mistake · Say this
73 Moderate RAG GenAI / LLM

How do you choose chunk size in RAG?

Short take Full answer on next page

Simple meaning

Balance context completeness versus retrieval precision.

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

Read full answer Example · Mistake · Say this
74 Moderate Tokens GenAI / LLM

Why do token limits matter?

Short take Full answer on next page

Simple meaning

Models accept a maximum context window measured in tokens, not words.

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

Read full answer Example · Mistake · Say this
75 Moderate Embeddings GenAI / LLM

What is cosine similarity for?

Short take Full answer on next page

Simple meaning

Measuring angle between vectors — common for nearest neighbor search.

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

Read full answer Example · Mistake · Say this
76 Moderate RAG GenAI / LLM

Why chunk documents before embedding?

Short take Full answer on next page

Simple meaning

Models and vector search work better on focused passages.

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

Read full answer Example · Mistake · Say this
78 Moderate Safety GenAI / LLM

What is prompt injection risk?

Short take Full answer on next page

Simple meaning

Untrusted content tries to override system instructions.

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

Read full answer Example · Mistake · Say this
Prev Page 4 of 4
Chat with us