Browsing by Author "LAHSASNA ,Adel"
Now showing 1 - 1 of 1
Results Per Page
Sort Options
Item Design and Implementation of a RAG-Based Medical Report Data Extractor API(Faculty of Sciences, 2026) BOUCHERBAT ,Mohamed Elhacene; OUAZETA Ouail ,Chams Eddine; LAHSASNA ,AdelThe digitalization of modern healthcare has generated vast amounts of unstructured clinical data, trapping valuable patient history within free-text medical reports. While Large Language Models (LLMs) offer unprecedented capabilities to analyze and synthesize this information, their direct application in clinical settings is severely limited by the risk of artificial hallucinations and strict patient data privacy regulations. To address this critical gap, this thesis presents the design, implementation, and evaluation of a privacy-preserving Retrieval-Augmented Generation (RAG) system tailored specifically for the medical domain. We propose a secure, multi-tier architecture that automatically ingests heterogeneous medical documents, extracts key clinical entities, and transforms unstructured text into highly searchable, localized vector representations. To guarantee data sovereignty and patient confidentiality, the system enforces strict mathematical isolation of patient records and employs an automated de-identification module to mask sensitive information before interacting with external generative models. Empirical evaluation demonstrates that the proposed architecture successfully mitigates LLM hallucinations by forcing the AI to generate responses strictly grounded in retrieved, patientspecific evidence. Ultimately, this research proves that integrating domain-specific natural language processing with secure RAG frameworks can safely unlock the value of unstructured medical data, providing clinicians with a reliable, privacy-compliant tool to support medical decision-making.