Query rewriting, HyDE और parent-child chunks
उन सवालों को ठीक कर पाओगे जिन पर plain retrieval गलत निकलता है: vague या compound queries को rewrite करना, hypothetical answer से search करना, और छोटे chunks match करके पूरे sections लौटाना।
Intermediate 2 · RAG builderabout 3 hours7 sections
सीधा जवाब
जब plain RAG चूक जाए, तो vague सवालों को rewrite करो, hypothetical answer (HyDE) से search करो, और छोटे chunks match करके model को उनका पूरा parent section दो।
ये क्यों ज़रूरी है
असली users छोटे, vague या दो हिस्सों वाले सवाल पूछते हैं, और जो RAG systems demo में चलते हैं वो इन पर फेल हो जाते हैं। Hybrid search लगने के बाद बाकी ज़्यादातर चूकों को ये तीन techniques ठीक करती हैं, और interviewers पूछना पसंद करते हैं कि कौन-सी कब काम आती है।
Sign up free to read the whole lesson
The rest of this lesson: 7 parts, video lessons, the best course, practice and a quick check. It is free, takes a few seconds and needs no card.
Accounts are for learners aged 18 and over. Under 18? The quick answer and the first part of every lesson stay open: browse lessons by topic.
Lessons on Generative AI & LLM Engineer0 of 65 done
- 1What AI, machine learning and a language model are
- 2Use a chat assistant for a real task and check the answer
- 3Use AI safely at work
- 4Set up Python and run your first file
- 5Variables, loops and functions in Python
- 6Write your own functions
- 7Lists and dictionaries
- 8Files and errors
- 9The terminal and Git
- 10Packages and virtual environments
- 11Call a web API and read JSON
- 12Tables with pandas
- 13Call an LLM API from code
- 14System prompts and prompt design
- 15Tokens and the context window
- 16How a model picks its next word: temperature, top-p and top-k
- 17Get structured JSON output
- 18Errors, retries and cost
- 19How a chat model is made: pre-training, SFT and preference tuning
- 20AI in Indian languages: tokens, quality gaps and what to use
- 21Embeddings
- 22Chunk documents for retrieval
- 23Vector search
- 24Build a RAG app
- 25Check whether retrieval works
- 26Parsing documents and OCR
- 27Metadata that helps retrieval
- 28Hybrid search, reranking and filters
- 29Query rewriting, HyDE and parent-child chunks
- 30Grounding, citations and refusing to guess
- 31Long context or RAG
- 32Tool calling
- 33The agent loop
- 34Logs and traces for agents
- 35How agents fail
- 36Long documents without vectors
- 37Test sets and evals
- 38LLM judges and their limits
- 39Choosing a model: benchmarks, leaderboards and your own tests
- 40Scoring open-ended answers: exact checks, similarity and side-by-side comparison
- 41Catching hallucinations: why models make things up and how to detect it
- 42Regression tests for prompts
- 43Defend against prompt injection
- 44Reasoning models and test-time compute: when to let the model think longer
- 45Data pipelines for AI
- 46Permission-aware RAG
- 47Graph RAG
- 48Multimodal RAG
- 49How fine-tuning works: data, training and what can go wrong
- 50LoRA, QLoRA and the GPU memory maths
- 51Fine-tuning in practice: tools, settings and reading the loss curve
- 52Synthetic data and distillation: training with model-made data
- 53Building a training dataset: quality, coverage and quantity
- 54Deploy and monitor an LLM app
- 55Caching and speed
- 56Inside LLM inference: prefill, decode and the KV cache
- 57Grow an AI app in layers: context, guardrails, routing, caching and agents
- 58Advanced harness engineering
- 59Harnesses for long-running agents
- 60Cost control
- 61Security and privacy
- 62Prompting, RAG or fine-tuning
- 63Design an AI system
- 64Quality, cost and speed trade-offs
- 65The design interview
Related
On these roadmaps: Generative AI & LLM Engineer, Forward Deployed Engineer (FDE)
Retrieval and RAGIntermediate 2: RAG builderVideo lessonsQuery rewritingHyDEParent-child chunks