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.

61 Easy Cost GenAI / LLM

What is prompt caching?

Short take Full answer on next page

Simple meaning

Prompt caching reuses computation for a repeated prefix such as a long system prompt or static RAG header.

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

Read full answer Example · Mistake · Say this
62 Easy Context window GenAI / LLM

What is a context window?

Short take Full answer on next page

Simple meaning

The context window is the maximum number of tokens the model can consider at once, including prompt and usually the completion.

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

Read full answer Example · Mistake · Say this
64 Easy Chunking GenAI / LLM

Why do we chunk documents for RAG?

Short take Full answer on next page

Simple meaning

Embedding a whole book as one vector blurs topics and may exceed model limits.

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

Read full answer Example · Mistake · Say this
65 Easy Chunking GenAI / LLM

What is overlap in document chunking?

Short take Full answer on next page

Simple meaning

Overlap copies a few tokens or sentences from the end of one chunk into the start of the next.

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

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

What is hybrid search?

Short take Full answer on next page

Simple meaning

Hybrid search combines lexical matching such as BM25 with dense vector search.

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

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

What is BM25?

Short take Full answer on next page

Simple meaning

BM25 is a ranking function for keyword search that scores term frequency with document-length normalization.

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

Read full answer Example · Mistake · Say this
68 Easy Tokens GenAI / LLM

What are special tokens such as BOS, EOS, and PAD?

Short take Full answer on next page

Simple meaning

BOS marks the start of a sequence, EOS marks the end of generation, and PAD fills batches to equal length.

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

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

What is a jailbreak in LLM chat products?

Short take Full answer on next page

Simple meaning

A jailbreak is a prompt that tries to bypass safety policy, for example by role-play or hypothetical framing.

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

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

How do you count tokens before calling an API?

Short take Full answer on next page

Simple meaning

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.

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

How do you choose embedding dimensionality?

Short take Full answer on next page

Simple meaning

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.

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

Why do teams L2-normalize embeddings?

Short take Full answer on next page

Simple meaning

After unit normalization, inner product equals cosine similarity, which simplifies indexes and scores.

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

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