استرجاع معزز للتوليد لإنشاء أصول معرفية وخلق محركات عمل Retrieval-Augmented Generation to Generate Knowledge Assets and Creation of Action Drivers

شارك:
المجلة: Applied Sciences، المجلد: 15، العدد: 11
DOI: https://doi.org/10.3390/app15116247
تاريخ النشر: 2025-06-01
المؤلف: Zhenyun Du وآخرون
الموضوع الرئيسي: نمذجة الموضوعات

نظرة عامة

تستكشف هذه المقالة استخدام الجيل المعزز بالاسترجاع (RAG) لتحسين تطوير أصول المعرفة واستخراج رؤى قابلة للتنفيذ من مجموعات البيانات المعقدة. تبدأ بتناول قيود نماذج اللغة الكبيرة (LLMs)، وخاصة حدود معرفتها وميولها للهلوسة، وتضع RAG كحل قابل للتطبيق يعزز الدقة الواقعية والملاءمة من خلال دمج استرجاع المعرفة الخارجية. تستعرض الدراسة هياكل RAG المختلفة، من النماذج الأساسية إلى المتقدمة، وتبرز تقنيات مثل الفهرسة المحسّنة، وتحسين الاستعلام، واستخدام البيانات الوصفية، ودور الوكلاء الذكائيين المستقلين في أنظمة RAG الوكيلة.

بالإضافة إلى ذلك، تناقش المقالة منهجيات فعالة لمعالجة البيانات، بما في ذلك تقسيم البيانات الواعي دلاليًا واستراتيجيات الاسترجاع مثل الاسترجاع متعدد القفزات وإعادة الترتيب، والتي تهدف إلى التخفيف من مشكلات مثل الاسترجاع غير ذي الصلة والتجزئة الدلالية. كما تفحص نماذج التضمين، وخاصة تمثيلات المتجهات المتطورة، لتمكين عمليات البحث عن التشابه بدقة داخل قواعد المعرفة. توضح دراسة حالة تنفيذ خط أنابيب RAG لتحليل مجموعات البيانات متعددة الأوراق، كاشفة عن التحديات المتعلقة بهيكلة البيانات، وهندسة المطالبات، والحفاظ على اتساق المخرجات.

مقدمة

في العصر الرقمي، يعد الإدارة الفعالة للمعرفة أمرًا حاسمًا لكل من الأفراد والمنظمات، خاصة مع ظهور نماذج اللغة الكبيرة (LLMs) التي تعزز قدرات معالجة اللغة الطبيعية. على الرغم من تقدمها، تعاني LLMs من مشكلات مثل الهلوسة – إنتاج معلومات غير صحيحة أو غير منطقية – والاعتماد على بيانات تدريب ثابتة، والتي يمكن أن تصبح قديمة بسرعة. يوفر ظهور الجيل المعزز بالاسترجاع (RAG) حلاً واعدًا لهذه القيود من خلال دمج المعلومات الواقعية المسترجعة في مخرجات LLM، مما يحسن دقة وملاءمة الرؤى الناتجة.

تركز هذه البحث على تنفيذ نظام قائم على RAG لمعالجة التحديات الواقعية، تحديدًا في سياق مراجعة الأساس 2024 لقطاع خدمات الأعمال المهنية في منطقة مدينة ليفربول. من خلال الاستفادة من مجموعات بيانات كبيرة ومتنوعة، تستكشف الدراسة أساليب جديدة لهيكلة البيانات، وتطوير المطالبات، واختبار الاتساق. يتم استخدام مقاييس التقييم مثل ملاءمة السياق وموثوقية الإجابة لتقييم أداء النظام. تشير النتائج إلى أن أنظمة RAG، خاصة عندما يتم تعزيزها بقدرات الوكلاء الذكائيين لتحسين الاستعلام بشكل مستقل، يمكن أن تحسن بشكل كبير من إنتاج أصول المعرفة الموثوقة والمفيدة. يدعم هذا التقدم عمليات اتخاذ القرار المعتمدة على البيانات في البيئات التنظيمية المعقدة ويؤسس أطرًا للتطبيق العملي لأنظمة المعلومات الذكية. بالإضافة إلى ذلك، يمكّن RAG نماذج LLM من الوصول إلى المعرفة الحديثة والمتخصصة، متجاوزًا القيود الثابتة للنماذج المدربة مسبقًا ويسمح بحلول ذكائية أكثر وعيًا بالسياق.

طرق

توضح قسم “المواد والطرق” تصميم التجربة والإجراءات المستخدمة في الدراسة. تفصل المواد المحددة المستخدمة، بما في ذلك أي مواد كيميائية، ومعدات، وعينات بيولوجية، لضمان إمكانية تكرار التجارب. تشمل المنهجية البروتوكولات لجمع البيانات، بما في ذلك تقنيات أخذ العينات، والضوابط التجريبية، والتحليلات الإحصائية المطبقة لتفسير النتائج.

بالإضافة إلى ذلك، قد يصف القسم إعداد التجربة، بما في ذلك أي ظروف بيئية أو معلمات ذات صلة تم التحكم فيها خلال الدراسة. تعتبر هذه الوثائق الشاملة ضرورية للتحقق من صحة النتائج وتسمح بالتحقق المستقل من النتائج من قبل باحثين آخرين في المجال.

نتائج

إطار عمل RAG TRIAD، الذي يشمل ملاءمة السياق، والموثوقية (أو الإخلاص)، وملاءمة الإجابة، يعمل كأداة تقييم شاملة لنظام RAG. يسمح هذا الإطار بتقييم منهجي للمكونات الأساسية لنظام RAG، كما هو موضح في الجدول 3. يوضح الجدول المقاييس المحددة المرتبطة بكل مكون ورسم البيانات المقابل، مما يوفر نهجًا منظمًا لتقييم فعالية وموثوقية نظام RAG في إنتاج استجابات ذات صلة ودقيقة.

بشكل عام، يسهل تطبيق إطار TRIAD فهمًا دقيقًا للتفاعل بين السياق وجودة الإجابة، مما يبرز أهمية الموثوقية في ضمان أن تكون الاستجابات ذات صلة وأيضًا مخلصة للمادة المصدرية.

مناقشة

تسلط قسم المناقشة في ورقة البحث الضوء على أهمية الجيل المعزز بالاسترجاع (RAG) في تعزيز قدرات نماذج اللغة الكبيرة (LLMs) في السياقات التجارية. يعالج RAG بفعالية قيود نماذج LLM المستقلة، مثل حدود المعرفة والهلوسة، من خلال دمج قواعد المعرفة الخارجية للتأسيس الواقعي. لا يحسن هذا النهج فقط دقة وموثوقية الاستجابات الناتجة، بل يعزز أيضًا إمكانية تتبع المعلومات، مما يسمح للمستخدمين بالتحقق من المعلومات مقابل الوثائق المصدرية. يتم التأكيد على الجدوى الاقتصادية لـ RAG، حيث يمكّن الشركات من تخصيص المخرجات دون الموارد الكبيرة المطلوبة لإعادة تدريب LLMs.

تناقش الورقة أيضًا تطور أنظمة RAG، من التنفيذات الساذجة التي تواجه تحديات في دقة الاسترجاع والتماسك إلى نماذج RAG المتقدمة التي تحسن الفهرسة واستراتيجيات الاستعلام. يمثل إدخال أنظمة RAG الوكيلة تحولًا في النموذج، حيث تتضمن وكلاء ذكائيين مستقلين قادرين على اتخاذ قرارات ديناميكية وتحسين تكراري، مما يحسن من ملاءمة وتنوع المعلومات المسترجعة. تؤكد الدراسة على أهمية نماذج التضمين في أنظمة RAG لاسترجاع دلالي فعال، وتبرز التحديات المرتبطة بتحليل مجموعات البيانات المعقدة باستخدام LLMs، خاصة من حيث هيكلة البيانات، وتطوير المطالبات، وضمان اتساق المخرجات. بشكل عام، تدعو النتائج إلى منهجيات منظمة في الاستفادة من RAG لتعزيز التحليلات المدفوعة بالذكاء الاصطناعي في التطبيقات التجارية.

القيود

يسلط قسم القيود الضوء على الاعتماد على المقاييس الآلية عبر إطار RAGAS لتقييم نتائج البحث، معترفًا بأن التقييم البشري سيعزز من عملية التحقق. يشير المؤلفون إلى أن درجات دقة السياق واسترجاع السياق المنخفضة، خاصة للاستعلامات الأولية، تشير إلى صعوبات في استرجاع المعلومات ذات الصلة من الوثائق الخاصة بالمجلس عندما يتم استرجاع ثلاثة وثائق فقط لكل استعلام.

لمعالجة هذه القيود، ستتضمن الأعمال المستقبلية تقييمات بشرية لتكملة التقييمات الآلية وتوفير تحليل نوعي لجودة الإجابة. على الرغم من هذه التحديات، تم التحقق من صحة إطار RAGAS سابقًا مقابل الأحكام البشرية، مما يمنح مصداقية للمقاييس الآلية المستخدمة للتحليل المقارن عبر هياكل RAG المختلفة. بالإضافة إلى ذلك، يهدف تنفيذ RAG الوكيل، الذي يتضمن دورة من التفكير، والعمل، والملاحظة، إلى تحسين عمليات الاسترجاع والتوليد، مما يحسن في النهاية من جودة النتائج.

Journal: Applied Sciences, Volume: 15, Issue: 11
DOI: https://doi.org/10.3390/app15116247
Publication Date: 2025-06-01
Author(s): Zhenyun Du et al.
Primary Topic: Topic Modeling

Overview

This article investigates the use of Retrieval-Augmented Generation (RAG) to improve the development of knowledge assets and derive actionable insights from complex datasets. It begins by addressing the limitations of large language models (LLMs), particularly their knowledge cut-offs and propensity for hallucinations, and positions RAG as a viable solution that enhances factual accuracy and relevance through the integration of external knowledge retrieval. The study reviews various RAG architectures, from basic to advanced models, and highlights techniques such as optimized indexing, query refinement, metadata utilization, and the role of autonomous AI agents in agentic RAG systems.

Additionally, the article discusses methodologies for effective data preprocessing, including semantic-aware chunking and retrieval strategies like multihop retrieval and reranking, which aim to mitigate issues such as irrelevant retrieval and semantic fragmentation. It also examines embedding models, particularly state-of-the-art vector representations, to enable precise similarity searches within knowledge bases. A case study illustrates the implementation of an RAG pipeline for analyzing multisheet datasets, revealing challenges related to data structuring, prompt engineering, and maintaining output consistency.

Introduction

In the digital age, the effective management of knowledge is crucial for both individuals and organizations, particularly with the advent of large language models (LLMs) that enhance natural language processing capabilities. Despite their advancements, LLMs are hindered by issues such as hallucinations—producing incorrect or nonsensical information—and reliance on static training data, which can quickly become outdated. The emergence of Retrieval-Augmented Generation (RAG) offers a promising solution to these limitations by integrating retrieved factual information into LLM outputs, thereby improving the accuracy and relevance of generated insights.

This research focuses on the implementation of an RAG-based system to address real-world challenges, specifically within the context of the Baseline Review 2024 for the Liverpool City Region’s Professional Business Services sector. By leveraging large and diverse datasets, the study explores novel approaches to data structuring, prompt development, and consistency testing. Evaluation metrics such as context relevance and answer faithfulness are utilized to assess system performance. The findings indicate that RAG systems, particularly when enhanced with AI agent capabilities for autonomous query optimization, can significantly improve the generation of reliable and insightful knowledge assets. This advancement supports data-driven decision-making processes in complex organizational settings and establishes frameworks for the practical application of intelligent information systems. Additionally, RAG enables LLMs to access up-to-date, domain-specific knowledge, overcoming the static limitations of pretrained models and allowing for more contextually aware AI solutions.

Methods

The “Materials and Methods” section outlines the experimental design and procedures employed in the study. It details the specific materials used, including any reagents, equipment, and biological samples, ensuring reproducibility of the experiments. The methodology encompasses the protocols for data collection, including sampling techniques, experimental controls, and statistical analyses applied to interpret the results.

Additionally, the section may describe the experimental setup, including any relevant environmental conditions or parameters that were controlled during the study. This thorough documentation is crucial for validating the findings and allows for independent verification of the results by other researchers in the field.

Results

The RAG TRIAD framework, which encompasses Context Relevance, Groundedness (or Faithfulness), and Answer Relevance, serves as a comprehensive evaluation tool for the RAG system. This framework allows for a systematic assessment of the core components of the RAG system, as detailed in Table 3. The table outlines the specific metrics associated with each component and the corresponding data mapping, providing a structured approach to evaluate the effectiveness and reliability of the RAG system in generating relevant and accurate responses.

Overall, the application of the TRIAD framework facilitates a nuanced understanding of the interplay between context and answer quality, highlighting the importance of groundedness in ensuring that responses are not only relevant but also faithful to the source material.

Discussion

The discussion section of the research paper highlights the significance of Retrieval-Augmented Generation (RAG) in enhancing the capabilities of large language models (LLMs) within business contexts. RAG effectively addresses the limitations of standalone LLMs, such as knowledge cut-offs and hallucinations, by integrating external knowledge bases for factual grounding. This approach not only improves the accuracy and reliability of generated responses but also enhances traceability, allowing users to verify information against source documents. The cost-effectiveness of RAG is emphasized, as it enables businesses to customize outputs without the extensive resources required for retraining LLMs.

The paper also discusses the evolution of RAG systems, from naïve implementations that face challenges in retrieval precision and coherence to advanced RAG models that optimize indexing and query strategies. The introduction of agentic RAG systems represents a paradigm shift, incorporating autonomous AI agents capable of dynamic decision-making and iterative refinement, thereby improving the relevance and diversity of retrieved information. The study underscores the importance of embedding models in RAG systems for effective semantic retrieval, and it highlights the challenges associated with analyzing complex datasets using LLMs, particularly in terms of data structuring, prompt development, and ensuring consistent outputs. Overall, the findings advocate for structured methodologies in leveraging RAG to enhance AI-driven analyses in business applications.

Limitations

The section on limitations highlights the reliance on automated metrics via the RAGAS framework for evaluating the research findings, acknowledging that human evaluation would enhance the validation process. The authors note that the low Context Precision and Context Recall scores, particularly for the initial queries, indicate difficulties in retrieving pertinent information from council-specific documents when only three documents are retrieved per query.

To address these limitations, future work will incorporate human evaluations to complement the automated assessments and provide a qualitative analysis of answer quality. Despite these challenges, the RAGAS framework has previously been validated against human judgments, which lends credibility to the automated metrics used for comparative analysis across various RAG architectures. Additionally, the implementation of Agentic RAG, which involves a cycle of thought, action, and observation, aims to enhance the retrieval and generation processes, ultimately improving the quality of results.

شارك: