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.

21 Moderate RAG GenAI / LLM

What is query rewriting in RAG?

Short take Full answer on next page

Simple meaning

Query rewriting uses an LLM or rules to expand, correct, or split the user question into better search strings.

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

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

What is reranking after retrieval?

Short take Full answer on next page

Simple meaning

A reranker scores the first-stage hits more carefully, often with a cross-encoder.

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

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

What is HyDE and when would you use it?

Short take Full answer on next page

Simple meaning

HyDE generates a hypothetical answer, embeds that, and searches with the hypothetical embedding.

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

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

What is multi-query retrieval?

Short take Full answer on next page

Simple meaning

You generate several paraphrased queries, retrieve for each, and merge unique chunks.

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

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

When can RAG still hallucinate?

Short take Full answer on next page

Simple meaning

Retrieval can miss the right chunk, return conflicting sources, or pack so much text that the model ignores the key sentence.

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

Read full answer Example · Mistake · Say this
27 Moderate Vector DB GenAI / LLM

How do metadata filters work with vector search?

Short take Full answer on next page

Simple meaning

You restrict candidates by tenant, date, product, or ACL before or during ANN search.

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

Read full answer Example · Mistake · Say this
28 Moderate Vector DB GenAI / LLM

When would you choose HNSW versus IVF-style indexes?

Short take Full answer on next page

Simple meaning

HNSW is a graph index with strong recall and simple incremental inserts, at higher memory cost.

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

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

What is LoRA or PEFT?

Short take Full answer on next page

Simple meaning

Parameter-efficient fine-tuning trains small adapter matrices instead of all weights.

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

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

What is catastrophic forgetting in fine-tuning?

Short take Full answer on next page

Simple meaning

Further training on a narrow dataset can erase general skills the base model had.

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

Read full answer Example · Mistake · Say this
39 Moderate LangChain GenAI / LLM

What memory types appear in LangChain-style chat apps?

Short take Full answer on next page

Simple meaning

Buffer memory stores raw turns, summary memory compresses old history, and vector memory retrieves past facts by similarity.

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

Read full answer Example · Mistake · Say this
40 Moderate LangChain GenAI / LLM

What is LCEL or a runnable pipeline conceptually?

Short take Full answer on next page

Simple meaning

LangChain Expression Language composes steps as runnable units with standard invoke, batch, and stream methods.

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

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