Python · NumPy · RAG & LLM Ops36 Auto-Graded Problems

Generative AI & LLM Engineering Interview Problems

Master practical LLM & RAG engineering in Python — from BPE merges and nucleus sampling to hybrid retrieval, reciprocal rank fusion, and ranking evaluation metrics.

Loading Generative AI problems...

What You'll Master in Generative AI

Core interview patterns and implementation skills tested across these 36 problems:

  • Tokenization & text preprocessing: BPE merges, sliding-window chunking & overlap
  • LLM Decoding strategies: Temperature scaling, Top-K, Top-P (Nucleus) & Beam Search
  • Hybrid RAG retrieval: Cosine similarity, BM25 scoring & Reciprocal Rank Fusion (RRF)
  • Ranking & generation evals: Precision@K, MRR, NDCG@K & BLEU/ROUGE scoring

Frequently Asked Questions — Generative AI

What kind of coding questions are asked in Generative AI & LLM Engineer interviews?

Companies test practical LLM systems code you can write without calling external APIs: Top-K/Top-P sampling, BPE tokenizer merges, document chunking with overlap, Reciprocal Rank Fusion (RRF), and retrieval metrics like NDCG@K.

Do I need GPU access or OpenAI API keys to practice Generative AI problems?

No! Every problem runs deterministically in Python/NumPy on our cloud runner with instant test-case feedback.

How does Generative AI differ from the Agentic AI track on AIMLCode?

Generative AI focuses on LLM internals, decoding, embeddings, RAG retrieval, and evaluation metrics, whereas Agentic AI focuses on ReAct loops, tool calling, memory budgets, and multi-agent orchestration.

Are RAG and vector search algorithms included?

Yes — you will implement chunking, cosine/dot-product top-K retrieval, BM25 lexical scoring, and hybrid Reciprocal Rank Fusion from scratch.