পরবর্তী আপপরবর্তী গাইড
পুনরুদ্ধার মেট্রিক্স: Recall@K, MRR এবং nDCG
টেকনিক্যাল
প্রযুক্তিগত গাইড
Parent document retrieval, also called small-to-big retrieval, searches over small, precise text chunks but hands the language model the larger section or document each chunk came from.
এই নির্দেশিকা শুনুনএআই-বর্ণিত · ~3 min
It matters because it removes the usual chunking trade-off: small chunks match queries accurately, and the larger parent gives the model enough context to answer correctly.
Fixed-size chunking forces a trade-off. Small chunks, say a few sentences, produce sharp embeddings: the vector represents one idea, so a query about that idea matches it closely. But a two-sentence chunk rarely contains enough context for the model to answer well; it may omit the definition three paragraphs earlier or the exception in the next sentence. Large chunks carry that context, but their embeddings blur several ideas together, so retrieval gets less precise and the relevant passage can be outscored by a chunk that is merely on-topic. Small-to-big retrieval splits the two jobs. The system indexes small child chunks for search, and each child keeps a pointer to a larger parent: a section, a page, or the whole document. At query time it finds the best children, then looks up and returns their parents. If several children share one parent, the parent is sent once, which also removes duplicates. LangChain's ParentDocumentRetriever implements this with a vector store for children and a separate document store for parents. LlamaIndex offers related patterns: sentence-window retrieval, which returns a matched sentence plus a fixed number of neighboring sentences, and auto-merging retrieval, which replaces many retrieved leaf chunks with their shared parent node when enough of them match. The approach tends to beat fixed-size chunking on structured documents such as manuals, contracts, policies and textbooks, where meaning depends on the surrounding section. It helps less when documents are already short, or when parents are so large that a few of them overflow the context window or bury the answer in irrelevant text. A common misconception is that this is just using bigger chunks. It is not: the retrieval unit and the generation unit are deliberately different sizes, so you keep precise matching without starving the model of context.
An internal IT help bot indexes each troubleshooting step as a separate child chunk, but when a step matches it returns the whole procedure, so the model does not tell users to do step 4 without steps 1 to 3.
A legal research tool matches a single clause about termination notice periods, then passes the model the full contract section, including the definitions and exceptions that change what the clause means.
A university course assistant searches sentence-level chunks from lecture notes and returns the surrounding page, so answers about a formula also include the conditions under which it applies.
An insurance claims assistant retrieves several small matches from one policy document, groups them by parent, and sends that policy section once instead of five overlapping fragments.
Small-to-big is becoming a default rather than a trick, and major frameworks already expose hierarchical or windowed retrieval as configuration options. Larger context windows reduce the penalty of sending bigger parents, which makes the pattern cheaper to adopt. Open questions remain about choosing parent boundaries automatically, for example using document layout analysis or learned segmentation instead of relying on headings. It is increasingly combined with rerankers and with contextual-embedding approaches that try to give small chunks awareness of their surroundings at indexing time. Testing on your own documents, rather than general benchmarks, remains the reliable way to pick child and parent sizes.
ফ্রি নিউজলেটার
প্রতি সপ্তাহের কাজের দিন সকালে তিনটি যাচাইকৃত এআই স্টোরি, সহজ ইংরেজিতে লেখা। চিরকালের জন্য ফ্রি, কোনো বিজ্ঞাপন নেই।
প্রতি সপ্তাহের কাজের দিনে একটি ইমেল। এক ক্লিকেই আনসাবস্ক্রাইব করুন। আমরা কখনোই আপনার ঠিকানা বিক্রি বা শেয়ার করি না।
নিজেকে পরীক্ষা করুন
প্রতিটি উত্তরের তাৎক্ষণিক ফিডব্যাক, এবং কোর্স পাস করার পর যাচাইযোগ্য আইডি সহ একটি শেয়ারযোগ্য সার্টিফিকেট।
ফ্রি এআই শিক্ষাকে সমর্থন করুন। AI Understanding একটি 501(c)(3) অলাভজনক প্রতিষ্ঠান — কোনো বিজ্ঞাপন নেই, কোনো পেওয়াল নেই, কখনোই না। একটি দান করুন
Parent document retrieval, also called small-to-big retrieval, searches over small, precise text chunks but hands the language model the larger section or document each chunk came from. It matters because it removes the usual chunking trade-off: small chunks match queries accurately, and the larger parent gives the model enough context to answer correctly.
ছোট অংশগুলি ফোকাসযুক্ত এমবেডিং দেয় তবে খুব কম প্রসঙ্গ দেয়; বড় অংশগুলি প্রসঙ্গ দেয় কিন্তু অস্পষ্ট এমবেডিং দেয়। ছোট থেকে বড় অনুসন্ধান ছোট এবং উভয় পেতে বড় ফেরত.
শিশুদের সুনির্দিষ্ট মিলের জন্য সূচিত করা হয়; একটি সন্তানের মিলের পর বাবা-মাকে দেখা হয়।
অভিভাবক দ্বারা গোষ্ঠীকরণের অর্থ হল বিভাগটি একবার অন্তর্ভুক্ত করা হয়েছে, যা টোকেন সংরক্ষণ করে এবং সদৃশ টুকরোগুলি সরিয়ে দেয়।
বাচ্চাদের অনুসন্ধানের জন্য একটি ভেক্টর স্টোরে এম্বেড করা হয়, যখন পূর্ণ পিতামাতারা একটি নথির দোকানে বসে থাকে এবং আইডি দ্বারা আনা হয়।
বাক্য-উইন্ডো পুনরুদ্ধার বাক্য স্তরে মেলে এবং তারপর প্রসঙ্গ সরবরাহ করার জন্য আশেপাশের বাক্যগুলির একটি উইন্ডোতে প্রসারিত হয়।
শিখতে থাকুন
এই বিষয়ের জন্য বাছাই করা আরও গাইড
পরবর্তী আপপরবর্তী গাইড
পুনরুদ্ধার মেট্রিক্স: Recall@K, MRR এবং nDCG
টেকনিক্যাল