Evaluating Islamic-Medicine Responses Using LLM Agents
This paper, "From RAG to Agentic: Validating Islamic-Medicine Responses with LLM Agents," introduces Tibbe-AG, an innovative framework designed to enhance the accuracy and cultural sensitivity of medical question-answering systems using LLMs. This study addresses a significant gap in the application of AI to culturally grounded medical knowledge, specifically focusing on Islamic medicine as detailed in foundational texts such as Avicenna’s "The Canon of Medicine" and "Prophetic Tibb-e-Nabawi." While these texts offer substantial information on preventive and holistic health practices, they have remained largely underutilized in the context of modern AI-based medical systems.
The authors propose a comprehensive evaluation pipeline, Tibbe-AG, which operationalizes 30 curated questions from Prophetic medicine and assesses responses generated by three LLMs: LLaMA-3, Mistral-7B, and Qwen2-7B under three configurations: direct generation, retrieval-augmented generation (RAG), and the newly proposed agentic framework. This framework incorporates not only retrieval of relevant evidence from foundational medical texts but also involves a secondary validation of the generated answers by an LLM acting as an evaluative agent, resulting in a quantifiable 3C3H quality score—encompassing correctness, completeness, conciseness, helpfulness, harmlessness, and honesty.
Methodological Overview
Tibbe-AG's methodology integrates classical Islamic medical knowledge directly within a modern AI framework. The process involves several critical stages. Initially, the system utilizes a dense retrieval mechanism, ChromaDB, to extract the most pertinent passages from annotated corpora of traditional texts. This retrieval process ensures that the subsequent answers are grounded in authenticated medical teachings.
The framework then employs a layered approach to answer generation. The base LLM initially combines the user query with retrieved content to produce a preliminary answer that harnesses the extraction and summarization prompts, ensuring traceability to the source material. Subsequently, this answer undergoes refinement through a validation stage, prompting the LLM to fact-check the initial response against the retrieved content and integrate mechanistic and safety considerations into the final answer.
To evaluate the generated responses, the paper introduces the 3C3H evaluation metric, which is calculated using an array of judge models, thus verifying the approach's reliability across different evaluative standards.
Results and Analysis
The findings of the study emphasize the superiority of Tibbe-AG over standard direct inference and RAG approaches. Tibbe-AG demonstrated a 13% improvement in factual accuracy and an additional 10% improvement through deeper mechanistic insights and safety considerations. Quantitatively, across various base and judge models, Tibbe-AG consistently outperformed alternatives in the 3C3H scores, demonstrating its effectiveness in not only retrieving and accurately presenting information but also ensuring safety and cultural sensitivity.
Implications and Future Directions
There are both theoretical and practical implications of this research. Theoretically, it illustrates how integrating culturally grounded knowledge into AI systems can enhance the contextual understanding and applicability of automated responses. Practically, this framework has the potential to create more culturally competent AI systems that can augment the educational tools available to scholars and practitioners of Unani medicine, and by extension, serve vast populations relying on these traditional medical systems, particularly in regions where they are historically prevalent.
Future developments could involve scaling this initial setup to more extensive datasets, refining Tibbe-AG's agentic validation component, and conducting comprehensive user studies to enhance AI acceptance within the context of culturally embedded medical practices. This research marks a significant step towards leveraging AI to preserve and disseminate historical medical knowledge, making it accessible and relevant to modern healthcare environments.