---
title: "RAG patterns — الگوهای RAG"
source: "https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG"
wiki: "systems-analysis.info/int"
article: "RAG_patterns_—_الگوهای_RAG"
language: "fa"
categories:
  - "Category:Large language models"
  - "Category:Persian"
  - "Category:Prompt engineering"
revision_id: 6123
wiki_created_at: 2026-09-06T23:58:39Z
wiki_modified_at: 2026-09-06T23:58:39Z
downloaded_at: 2026-09-07T23:12:11Z
---

# RAG patterns — الگوهای RAG

**الگوهای RAG** (به انگلیسی: *RAG Patterns*) — مجموعه‌ای از رویکردهای معماری و روش‌شناختی برای ساخت سیستم‌های **Retrieval-Augmented Generation** (RAG) هستند. این الگوها برای حل مشکلات بنیادین مدل‌های زبانی بزرگ (LLM)، از جمله توهم‌زایی، قدیمی شدن دانش و کمبود تخصص حوزه‌ای، از طریق یکپارچه‌سازی LLM با منابع داده خارجی و در دسترس به‌صورت پویا طراحی شده‌اند<sup>[\[1\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-lewis2020-1)</sup>. تکامل RAG مسیری از pipeline های خطی ساده تا سیستم‌های ماژولار و عامل‌محور پیچیده را طی کرده است<sup>[\[2\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-survey2024-2)</sup>.

## الگوهای اصلی RAG

با پیشرفت این فناوری، الگوهای متعددی از RAG پدید آمده‌اند که هر یک مسائل خاصی را حل می‌کنند و دارای مصالحه‌های خاص خود میان کیفیت، سرعت و هزینه هستند.

- **Classic RAG (RAG کلاسیک)** — رویکرد پایه‌ای که در آن درخواست کاربر برای جستجوی قطعه‌های (chunk) مرتبط در پایگاه داده برداری وکتورایز می‌شود؛ chunk های یافت‌شده به همراه سؤال به LLM داده می‌شوند تا پاسخ تولید شود<sup>[\[1\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-lewis2020-1)</sup>.

<!-- -->

- **Multi‑Query RAG (درخواست‌های چندگانه)** — LLM چندین نسخه بازنویسی‌شده/دقیق‌تر از درخواست اصلی تولید می‌کند؛ جستجو برای همه نسخه‌ها انجام می‌شود و نتایج ادغام می‌گردند که این امر جامعیت (*recall*) را افزایش می‌دهد<sup>[\[3\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-langchain-multiquery-3)</sup>.

<!-- -->

- **HyDE (Hypothetical Document Expansion)** — برای غلبه بر «شکاف معنایی» میان درخواست کوتاه و اسناد بلند. LLM ابتدا یک سند-پاسخ «فرضی» تولید می‌کند، سپس embedding آن برای جستجو استفاده می‌شود که اغلب کیفیت بازیابی را بهبود می‌بخشد<sup>[\[4\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-hyde-4)</sup>.

<!-- -->

- **Hybrid Retrieval (جستجوی ترکیبی)** — ترکیب جستجوی معنایی (برداری) و واژگانی (BM25). طرح‌های ترکیبی به استاندارد سیستم‌های تولیدی تبدیل شده‌اند: جستجوی برداری تطابق‌های معنایی را پوشش می‌دهد و BM25 اصطلاحات دقیق، شناسه‌ها و اختصارات را می‌یابد؛ نتایج از طریق fusion ادغام می‌شوند<sup>[\[5\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-weaviate-hybrid-5)[\[6\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-qdrant-hybrid-6)[\[7\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-milvus-fulltext-7)</sup>.

<!-- -->

- **Re‑ranking (رتبه‌بندی مجدد)** — فرآیندی دو مرحله‌ای: یک retriever سریع مجموعه‌ای از کاندیداها (مثلاً top‑100) را برمی‌گرداند، سپس یک cross-encoder (یا reranker دیگری) ارتباط را محاسبه مجدد کرده و بهترین‌ها (مثلاً top‑5) را برای LLM انتخاب می‌کند<sup>[\[8\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-nogueira2019-8)[\[9\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-cohere-rerank-9)</sup>.

<!-- -->

- **Query Routing (مسیریابی درخواست)** — در سیستم‌هایی با چندین منبع داده ناهمگن (ایندکس‌ها/پایگاه‌های داده/API های مختلف)، درخواست توسط یک router (انتخابگر LLM یا دسته‌بند) به بهترین منبع هدایت می‌شود؛ شامل استراتژی‌های fallback نیز می‌شود<sup>[\[10\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-llama-router-10)</sup>.

<!-- -->

- **Agentic/Web RAG (RAG عامل‌محور)** — LLM به‌عنوان عامل عمل می‌کند: سؤالات پیچیده را تجزیه می‌کند، تکرارها را برنامه‌ریزی کرده و از ابزارها (جستجوی برداری، جستجوی وب) با بازخورد استفاده می‌کند. پیاده‌سازی رایج — پارادایم ReAct است<sup>[\[11\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-react-11)</sup>؛ برای جمع‌آوری وب‌محور و استناددهی اجباری به WebGPT مراجعه کنید<sup>[\[12\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-webgpt-12)</sup>.

### پارادایم‌های مرتبط و در حال توسعه

- **GraphRAG (RAG گراف‌محور)** — از گراف دانش به‌عنوان منبع و مکانیزم انتخاب زمینه استفاده می‌کند؛ جستجو از طریق ساختار روابط میان موجودیت‌ها و متن صورت می‌گیرد و قابلیت تفسیر و کیفیت را در سؤالات چندگامه افزایش می‌دهد<sup>[\[13\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-graphrag-13)[\[14\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-graphrag-project-14)</sup>.
- **MM‑RAG (RAG چندوجهی)** — کار با متن و منابع بصری (اسکن‌ها/نمودارها/جداول). مثال: VisRAG رویکرد بازیابی و تولید مبتنی بر VLM را روی اسناد چندوجهی نشان می‌دهد<sup>[\[15\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-visrag-15)</sup>.
- **Packaging & Context Handling (بسته‌بندی زمینه)** — روش‌های یکپارچه‌سازی chunk های یافت‌شده در prompt: *Stuff*، *Map‑Reduce*، *Refine*، *Tree‑of‑Chunks (RAPTOR)*<sup>[\[16\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-raptor-16)</sup>.

## جدول مقایسه‌ای الگوها

| الگو                 | چه زمانی استفاده شود                                  | تأثیر بر کیفیت                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | هزینه / تأخیر | ریسک‌ها و محدودیت‌ها                                 |
|----------------------|-------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------------------------------------------------|
| **Classic RAG**      | PoC و Q&A ساده روی پایگاه داده همگن                   | سطح پایه؛ به‌شدت به embedding ها وابسته است<sup>[\[1\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-lewis2020-1)</sup>                                                                                                                                                                                                                                                                                                      | پایین         | حساسیت به نحوه بیان؛ ریسک زمینه نامرتبط            |
| **Hybrid Retrieval** | در اکثر سناریوهای تولیدی؛ کدها/اختصارات/شناسه‌های زیاد | جامعیت را افزایش می‌دهد؛ اصطلاحات دقیق را پوشش می‌دهد<sup>[\[5\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-weaviate-hybrid-5)[\[6\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-qdrant-hybrid-6)[\[7\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-milvus-fulltext-7)</sup> | پایین/متوسط   | تنظیم وزن‌های fusion؛ دو ایندکس                     |
| **Re‑ranking**       | هنگامی که دقت بالا حیاتی است                          | افزایش قابل توجه precision در top‑k<sup>[\[8\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-nogueira2019-8)[\[9\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-cohere-rerank-9)</sup>                                                                                                                                                                | متوسط/بالا    | تأخیر/هزینه اضافی                                  |
| **Multi‑Query**      | درخواست‌های کوتاه/چندوجهی                              | recall را افزایش می‌دهد<sup>[\[3\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-langchain-multiquery-3)</sup>                                                                                                                                                                                                                                                                                                               | متوسط         | بازنویسی‌های اضافی/پر سر و صدا                      |
| **HyDE**             | درخواست‌های کوتاه/مبهم با «شکاف معنایی» زیاد           | کیفیت بازیابی *zero‑shot* را بهبود می‌دهد<sup>[\[4\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-hyde-4)</sup>                                                                                                                                                                                                                                                                                                             | متوسط         | به کیفیت متن «فرضی» وابسته است                     |
| **Query Routing**    | چندین منبع (پایگاه اسناد، SQL، API، وب)               | ارتباط را از طریق منبع صحیح افزایش می‌دهد<sup>[\[10\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-llama-router-10)</sup>                                                                                                                                                                                                                                                                                                   | متوسط         | خطای مسیریابی = شکست جستجو                         |
| **Agentic/Web RAG**  | درخواست‌های پیچیده، پژوهشی، چندمرحله‌ای                 | مسائل فراتر از pipeline خطی را حل می‌کند<sup>[\[11\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-react-11)[\[12\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-webgpt-12)</sup>                                                                                                                                                                      | بالا          | پیچیدگی، ریسک حلقه بی‌نهایت؛ نیاز به guardrail دارد |

مقایسه الگوهای کلیدی RAG

## پیاده‌سازی عملی و معماری

### مراحل پیاده‌سازی

1.  **Proof of Concept (PoC):** با **Classic RAG** روی مجموعه داده محدود اما نماینده شروع کنید تا کیفیت embedding ها و بازیابی پایه را بررسی کنید<sup>[\[1\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-lewis2020-1)</sup>.
2.  **Minimum Viable Product (MVP):** **Hybrid Retrieval** و **Re‑ranking** را به‌عنوان بهترین نسبت «تلاش/اثر» پیاده‌سازی کنید<sup>[\[5\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-weaviate-hybrid-5)[\[8\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-nogueira2019-8)</sup>.
3.  **Production:** تبدیل‌های درخواست (**HyDE**، **Multi‑Query**) و در صورت نیاز **Query Routing** را اضافه کنید؛ observability (ثبت لاگ بازیابی/رتبه‌بندی مجدد/پاسخ‌ها) و A/B testing را راه‌اندازی کنید<sup>[\[3\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-langchain-multiquery-3)[\[10\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-llama-router-10)</sup>.

### اجزای کلیدی

- **Chunking (تقطیع):** یکی از بحرانی‌ترین عوامل کیفیت است. اندازه ثابت ساده اغلب واحدهای معنایی را از هم می‌برد. استفاده از splitter های ساختار‌محور (بر اساس markup) یا بازگشتی (پاراگراف → جمله → کلمه) توصیه می‌شود<sup>[\[17\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-rcsplit-17)[\[18\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-llama-hier-18)</sup>.
- **Embedding ها و metadata:** به همراه هر chunk، document_id، صفحه/بخش، عنوان و تاریخ‌ها را ذخیره کنید؛ این برای فیلترسازی و استناددهی صحیح به منابع ضروری است.
- **بازیابی ترکیبی و rerank:** از BM25+برداری با fusion (یا RRF) استفاده کنید، سپس یک cross-encoder برای رتبه‌بندی مجدد در مجموعه کوچکی از کاندیداها به‌کار بگیرید<sup>[\[5\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-weaviate-hybrid-5)[\[6\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-qdrant-hybrid-6)[\[8\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-nogueira2019-8)</sup>.
- **بسته‌بندی زمینه:** برای corpus های بلند، *Map‑Reduce*، *Refine* یا *Tree‑of‑Chunks* را انتخاب کنید<sup>[\[16\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-raptor-16)[\[18\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-llama-hier-18)</sup>.

### اشتباهات رایج (الگوهای ضد)

- **فقط جستجوی برداری** بدون BM25 ← شکست در کدها/شناسه‌ها/اختصارات<sup>[\[5\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-weaviate-hybrid-5)[\[7\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-milvus-fulltext-7)</sup>.
- **chunk خیلی بزرگ/کوچک** ← از دست دادن زمینه یا «پخش شدن» embedding<sup>[\[17\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-rcsplit-17)</sup>.
- **عدم استفاده از rerank در محیط تولیدی** ← LLM زمینه پر سر و صدا دریافت می‌کند<sup>[\[8\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-nogueira2019-8)</sup>.
- **عدم وجود observability** و ردیابی منابع ← امکان بررسی علت خطاها وجود ندارد (به ارزیابی RAG مراجعه کنید).

## ارزیابی کیفیت و معیارها

ارزیابی در سطح retriever (آفلاین) و end‑to‑end (تولید) انجام می‌شود.

### معیارهای retriever

- **Hit Rate، Recall@k، MRR** — پوشش و موقعیت اسناد مرتبط.
- **Context Precision & Recall** — میزان خلوص زمینه استخراج‌شده از «سر و صدا» و پوشش همه موارد لازم (پیاده‌سازی‌شده در RAGAS)<sup>[\[19\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-ragas-19)</sup>.

### معیارهای generator (end‑to‑end)

- **Faithfulness / Groundedness** — انطباق پاسخ با زمینه ارائه‌شده.
- **Answer Relevancy (ارتباط پاسخ)** — انطباق با سؤال اصلی.

برای خودکارسازی معیارها از framework های متن‌باز استفاده می‌شود: **RAGAS**، **TruLens** (*RAG triad*: context relevance, groundedness, answer relevance)، **DeepEval**<sup>[\[20\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-trulens-20)[\[21\]](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_note-deepeval-21)</sup>.

## همچنین ببینید

- Retrieval-Augmented Generation (RAG)
- پایگاه‌های داده برداری
- Embedding
- عامل هوش مصنوعی
- GraphRAG
- MM-RAG
- ارزیابی و benchmark های LLM

## منابع

- Lewis, P., Perez, E., et al. (2020). *Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks*. NeurIPS. arXiv:2005.11401.
- Fan, W., Ding, Y., et al. (2024). *A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models*. KDD. DOI:10.1145/3637528.3671470; arXiv:2405.06211.
- Gao, L., Ma, X., Lin, J., Callan, J. (2023). *Precise Zero‑Shot Dense Retrieval without Relevance Labels (HyDE)*. ACL 2023. ACL Anthology; arXiv:2212.10496.
- Nogueira, R., Cho, K. (2019). *Passage Re‑ranking with BERT*. arXiv:1901.04085.
- Weaviate Docs. *Hybrid search (BM25+Vector)*. <a href="https://docs.weaviate.io/weaviate/concepts/search/hybrid-search" class="external autonumber" rel="nofollow">[۱]</a>.
- Qdrant Docs. *Hybrid Queries*. <a href="https://qdrant.tech/documentation/concepts/hybrid-queries/" class="external autonumber" rel="nofollow">[۲]</a>.
- Milvus Docs. *Full‑Text Search* / *Hybrid Search*. <a href="https://milvus.io/docs/full-text-search.md" class="external autonumber" rel="nofollow">[۳]</a> / <a href="https://milvus.io/docs/hybrid_search_with_milvus.md" class="external autonumber" rel="nofollow">[۴]</a>.
- LangChain Docs. *MultiQueryRetriever*. <a href="https://python.langchain.com/docs/how_to/MultiQueryRetriever/" class="external autonumber" rel="nofollow">[۵]</a>.
- Cohere Docs. *Rerank — best practices*. <a href="https://docs.cohere.com/docs/reranking-best-practices" class="external autonumber" rel="nofollow">[۶]</a>.
- LlamaIndex Docs. *Routing (query routers/selectors)*. <a href="https://docs.llamaindex.ai/en/stable/module_guides/querying/router/" class="external autonumber" rel="nofollow">[۷]</a>.
- Yao, S., et al. (2023). *ReAct: Synergizing Reasoning and Acting in Language Models*. ICLR. arXiv:2210.03629.
- Nakano, R., et al. (2021). *WebGPT: Browser‑assisted question‑answering with human feedback*. arXiv:2112.09332.
- Microsoft Research Blog. *GraphRAG: Unlocking LLM discovery on narrative private data*. (2024). <a href="https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/" class="external autonumber" rel="nofollow">[۸]</a>.
- Microsoft Research. *Project GraphRAG*. (2024). <a href="https://www.microsoft.com/en-us/research/project/graphrag/" class="external autonumber" rel="nofollow">[۹]</a>.
- Yu, S., et al. (2024). *VisRAG: Vision‑based Retrieval‑augmented Generation on Multi‑modality Documents*. arXiv:2410.10594.
- Sarthi, P., et al. (2024). *RAPTOR: Recursive Abstractive Processing for Tree‑Organized Retrieval*. arXiv:2401.18059.
- Es, S., et al. (2024). *RAGAs: Automated Evaluation of Retrieval Augmented Generation*. EACL (Demo). <a href="https://aclanthology.org/2024.eacl-demo.16/" class="external autonumber" rel="nofollow">[۱۰]</a>.
- TruLens Docs. *RAG Triad*. <a href="https://www.trulens.org/getting_started/core_concepts/rag_triad/" class="external autonumber" rel="nofollow">[۱۱]</a>.
- DeepEval (GitHub). *The LLM Evaluation Framework*. <a href="https://github.com/confident-ai/deepeval" class="external autonumber" rel="nofollow">[۱۲]</a>.
- LangChain Docs. *RecursiveCharacterTextSplitter*. <a href="https://python.langchain.com/docs/how_to/recursive_text_splitter/" class="external autonumber" rel="nofollow">[۱۳]</a>.
- LlamaIndex Docs. *HierarchicalNodeParser*; *Response Synthesis (Tree/Refine)*. <a href="https://docs.llamaindex.ai/en/stable/api/llama_index.core.node_parser.HierarchicalNodeParser.html" class="external autonumber" rel="nofollow">[۱۴]</a>; <a href="https://docs.llamaindex.ai/en/stable/examples/low_level/response_synthesis/" class="external autonumber" rel="nofollow">[۱۵]</a>.

## یادداشت‌ها

1.  <span id="cite_note-lewis2020-1">↑ <sup>[1.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-lewis2020_1-0)</sup> <sup>[1.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-lewis2020_1-1)</sup> <sup>[1.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-lewis2020_1-2)</sup> <sup>[1.3](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-lewis2020_1-3)</sup> Lewis, P., Perez, E., et al. (2020). *Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks*. NeurIPS. arXiv:2005.11401.</span>
2.  <span id="cite_note-survey2024-2">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-survey2024_2-0) Fan, W., Ding, Y., et al. (2024). *A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models*. KDD. DOI:10.1145/3637528.3671470; arXiv:2405.06211.</span>
3.  <span id="cite_note-langchain-multiquery-3">↑ <sup>[3.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-langchain-multiquery_3-0)</sup> <sup>[3.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-langchain-multiquery_3-1)</sup> <sup>[3.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-langchain-multiquery_3-2)</sup> LangChain Docs. *MultiQueryRetriever*. <a href="https://python.langchain.com/docs/how_to/MultiQueryRetriever/" class="external free" rel="nofollow">https://python.langchain.com/docs/how_to/MultiQueryRetriever/</a></span>
4.  <span id="cite_note-hyde-4">↑ <sup>[4.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-hyde_4-0)</sup> <sup>[4.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-hyde_4-1)</sup> Gao, L., Ma, X., Lin, J., Callan, J. (2023). *Precise Zero‑Shot Dense Retrieval without Relevance Labels*. ACL 2023. arXiv:2212.10496; ACL Anthology: 2023.acl‑long.99.</span>
5.  <span id="cite_note-weaviate-hybrid-5">↑ <sup>[5.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-weaviate-hybrid_5-0)</sup> <sup>[5.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-weaviate-hybrid_5-1)</sup> <sup>[5.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-weaviate-hybrid_5-2)</sup> <sup>[5.3](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-weaviate-hybrid_5-3)</sup> <sup>[5.4](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-weaviate-hybrid_5-4)</sup> Weaviate Docs. *Hybrid search (BM25+Vector)*. <a href="https://docs.weaviate.io/weaviate/concepts/search/hybrid-search" class="external free" rel="nofollow">https://docs.weaviate.io/weaviate/concepts/search/hybrid-search</a></span>
6.  <span id="cite_note-qdrant-hybrid-6">↑ <sup>[6.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-qdrant-hybrid_6-0)</sup> <sup>[6.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-qdrant-hybrid_6-1)</sup> <sup>[6.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-qdrant-hybrid_6-2)</sup> Qdrant Docs. *Hybrid Queries*. <a href="https://qdrant.tech/documentation/concepts/hybrid-queries/" class="external free" rel="nofollow">https://qdrant.tech/documentation/concepts/hybrid-queries/</a></span>
7.  <span id="cite_note-milvus-fulltext-7">↑ <sup>[7.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-milvus-fulltext_7-0)</sup> <sup>[7.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-milvus-fulltext_7-1)</sup> <sup>[7.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-milvus-fulltext_7-2)</sup> Milvus Docs. *Full‑Text Search* и *Hybrid Search*. <a href="https://milvus.io/docs/full-text-search.md" class="external free" rel="nofollow">https://milvus.io/docs/full-text-search.md</a>; <a href="https://milvus.io/docs/hybrid_search_with_milvus.md" class="external free" rel="nofollow">https://milvus.io/docs/hybrid_search_with_milvus.md</a></span>
8.  <span id="cite_note-nogueira2019-8">↑ <sup>[8.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-nogueira2019_8-0)</sup> <sup>[8.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-nogueira2019_8-1)</sup> <sup>[8.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-nogueira2019_8-2)</sup> <sup>[8.3](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-nogueira2019_8-3)</sup> <sup>[8.4](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-nogueira2019_8-4)</sup> Nogueira, R., Cho, K. (2019). *Passage Re‑ranking with BERT*. arXiv:1901.04085.</span>
9.  <span id="cite_note-cohere-rerank-9">↑ <sup>[9.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-cohere-rerank_9-0)</sup> <sup>[9.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-cohere-rerank_9-1)</sup> Cohere Docs. *Rerank — best practices*. <a href="https://docs.cohere.com/docs/reranking-best-practices" class="external free" rel="nofollow">https://docs.cohere.com/docs/reranking-best-practices</a></span>
10. <span id="cite_note-llama-router-10">↑ <sup>[10.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-llama-router_10-0)</sup> <sup>[10.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-llama-router_10-1)</sup> <sup>[10.2](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-llama-router_10-2)</sup> LlamaIndex Docs. *Routing (query routers/selectors)*. <a href="https://docs.llamaindex.ai/en/stable/module_guides/querying/router/" class="external free" rel="nofollow">https://docs.llamaindex.ai/en/stable/module_guides/querying/router/</a></span>
11. <span id="cite_note-react-11">↑ <sup>[11.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-react_11-0)</sup> <sup>[11.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-react_11-1)</sup> Yao, S., et al. (2023). *ReAct: Synergizing Reasoning and Acting in Language Models*. ICLR 2023. arXiv:2210.03629.</span>
12. <span id="cite_note-webgpt-12">↑ <sup>[12.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-webgpt_12-0)</sup> <sup>[12.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-webgpt_12-1)</sup> Nakano, R., et al. (2021). *WebGPT: Browser‑assisted question‑answering with human feedback*. arXiv:2112.09332.</span>
13. <span id="cite_note-graphrag-13">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-graphrag_13-0) Microsoft Research Blog. *GraphRAG: Unlocking LLM discovery on narrative private data*. 2024. <a href="https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/" class="external free" rel="nofollow">https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/</a></span>
14. <span id="cite_note-graphrag-project-14">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-graphrag-project_14-0) Microsoft Research. *Project GraphRAG*. <a href="https://www.microsoft.com/en-us/research/project/graphrag/" class="external free" rel="nofollow">https://www.microsoft.com/en-us/research/project/graphrag/</a></span>
15. <span id="cite_note-visrag-15">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-visrag_15-0) Yu, S., et al. (2024). *VisRAG: Vision‑based Retrieval‑augmented Generation on Multi‑modality Documents*. arXiv:2410.10594; OpenReview: zG459X3Xge.</span>
16. <span id="cite_note-raptor-16">↑ <sup>[16.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-raptor_16-0)</sup> <sup>[16.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-raptor_16-1)</sup> Sarthi, P., et al. (2024). *RAPTOR: Recursive Abstractive Processing for Tree‑Organized Retrieval*. arXiv:2401.18059.</span>
17. <span id="cite_note-rcsplit-17">↑ <sup>[17.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-rcsplit_17-0)</sup> <sup>[17.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-rcsplit_17-1)</sup> LangChain Docs. *RecursiveCharacterTextSplitter*. <a href="https://python.langchain.com/docs/how_to/recursive_text_splitter/" class="external free" rel="nofollow">https://python.langchain.com/docs/how_to/recursive_text_splitter/</a></span>
18. <span id="cite_note-llama-hier-18">↑ <sup>[18.0](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-llama-hier_18-0)</sup> <sup>[18.1](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-llama-hier_18-1)</sup> LlamaIndex Docs. *HierarchicalNodeParser* и *Tree Summarization*. <a href="https://docs.llamaindex.ai/en/stable/api/llama_index.core.node_parser.HierarchicalNodeParser.html" class="external free" rel="nofollow">https://docs.llamaindex.ai/en/stable/api/llama_index.core.node_parser.HierarchicalNodeParser.html</a>; <a href="https://docs.llamaindex.ai/en/stable/examples/low_level/response_synthesis/" class="external free" rel="nofollow">https://docs.llamaindex.ai/en/stable/examples/low_level/response_synthesis/</a></span>
19. <span id="cite_note-ragas-19">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-ragas_19-0) Es, S., et al. (2024). *RAGAs: Automated Evaluation of Retrieval Augmented Generation*. EACL (Demo). <a href="https://aclanthology.org/2024.eacl-demo.16/" class="external free" rel="nofollow">https://aclanthology.org/2024.eacl-demo.16/</a></span>
20. <span id="cite_note-trulens-20">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-trulens_20-0) TruLens Docs. *RAG Triad*. <a href="https://www.trulens.org/getting_started/core_concepts/rag_triad/" class="external free" rel="nofollow">https://www.trulens.org/getting_started/core_concepts/rag_triad/</a></span>
21. <span id="cite_note-deepeval-21">[↑](https://systems-analysis.info/int/RAG_patterns_%E2%80%94_%D8%A7%D9%84%DA%AF%D9%88%D9%87%D8%A7%DB%8C_RAG#cite_ref-deepeval_21-0) DeepEval (GitHub). <a href="https://github.com/confident-ai/deepeval" class="external free" rel="nofollow">https://github.com/confident-ai/deepeval</a></span>
