This repository is built untop of the RAGMEUP repo, it contains the implementation of a modular, production-grade Retrieval-Augmented Generation (RAG) pipeline. The system integrates document ingestion, hybrid retrieval, reranking, context-grounded response generation, and evaluation into a cohesive framework, with support for real-world deployments including SharePoint integration and advanced provenance tracking.
RAGHelper.py.llm_loader.py to load and switch between LLM backends.server.py), with options for local or containerized deployment.provenance.py).RAGHelper_local.py and sharepoint_regex.py.RAGHelper.py, with support for Milvus vector store.RAGHelper.py and MiniLM-L-12-v2.llama_cpp_wrapper.py), and modular backend loading via llm_loader.py.Ragas_eval.py), custom Faccor metrics (faccor.py), provenance analysis (provenance.py), and thematic analysis of open feedback (plot_generator.py).server.py.git clone https://github.com/NBillar/ragmodel_thesis_nufail_billar_JADS.git
cd ragmodel_thesis_nufail_billar_JADS
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
.env files configure prompt templates, model paths, and SharePoint directories.llm_loader.py, supporting modular selection of models (e.g., Llama-3.2-3B, DeepSeek, Qwen)..env or directly in RAGHelper_local.py.uvicorn server:app --reload
Ragas_eval.py for automated benchmark metrics.plot_generator.py.ragmodel_thesis_nufail_billar_JADS/server
├── RAGHelper.py # Core RAG functionality (retrieval, reranking)
├── RAGHelper_local.py # Local ingestion with SharePoint integration
├── llm_loader.py # Modular LLM loading
├── llama_cpp_wrapper.py # Quantized LLaMA model support
├── provenance.py # Provenance scoring and tracking
├── Ragas_eval.py # Evaluation pipeline with RAGAS and custom metrics
├── faccor.py # Custom Faccor metric calculation
├── server.py # FastAPI-based backend
├── sharepoint_regex.py # SharePoint link extraction from .docx
├── plot_generator.py # Open-ended feedback analysis and plotting
└── /data, /models, /config # Data, model files, and configuration
git checkout -b feature-branch).git commit -am 'Add new feature').git push origin feature-branch).This repository is built untop of the RAGMEUP repo, it contains the implementation of a modular, production-grade Retrieval-Augmented Generation (RAG) pipeline. The system integrates document ingestion, hybrid retrieval, reranking, context-grounded response generation, and evaluation into a cohesive framework, with support for real-world deployments including SharePoint integration and advanced provenance tracking.
RAGHelper.py.llm_loader.py to load and switch between LLM backends.server.py), with options for local or containerized deployment.provenance.py).RAGHelper_local.py and sharepoint_regex.py.RAGHelper.py, with support for Milvus vector store.RAGHelper.py and MiniLM-L-12-v2.llama_cpp_wrapper.py), and modular backend loading via llm_loader.py.Ragas_eval.py), custom Faccor metrics (faccor.py), provenance analysis (provenance.py), and thematic analysis of open feedback (plot_generator.py).server.py.git clone https://github.com/NBillar/ragmodel_thesis_nufail_billar_JADS.git
cd ragmodel_thesis_nufail_billar_JADS
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
.env files configure prompt templates, model paths, and SharePoint directories.llm_loader.py, supporting modular selection of models (e.g., Llama-3.2-3B, DeepSeek, Qwen)..env or directly in RAGHelper_local.py.uvicorn server:app --reload
Ragas_eval.py for automated benchmark metrics.plot_generator.py.ragmodel_thesis_nufail_billar_JADS/server
├── RAGHelper.py # Core RAG functionality (retrieval, reranking)
├── RAGHelper_local.py # Local ingestion with SharePoint integration
├── llm_loader.py # Modular LLM loading
├── llama_cpp_wrapper.py # Quantized LLaMA model support
├── provenance.py # Provenance scoring and tracking
├── Ragas_eval.py # Evaluation pipeline with RAGAS and custom metrics
├── faccor.py # Custom Faccor metric calculation
├── server.py # FastAPI-based backend
├── sharepoint_regex.py # SharePoint link extraction from .docx
├── plot_generator.py # Open-ended feedback analysis and plotting
└── /data, /models, /config # Data, model files, and configuration
git checkout -b feature-branch).git commit -am 'Add new feature').git push origin feature-branch).