A state-of-the-art Retrieval-Augmented Generation (RAG) research workspace powered by LangGraph multi-agent orchestration and RAGAS compliance auditing.
It features a high-fidelity React frontend dashboard with real-time graph execution playbacks, a robust FastAPI backend, and an intelligent client-side fallback simulation for offline/static hosting (such as GitHub Pages).
- Multi-Agent Orchestration (LangGraph):
- RetrievalAgent: Handles FAISS query matching and dynamic query expansion.
- ReasoningAgent: Synthesizes and refines grounded responses.
- ValidationAgent: Audits drafts for hallucinations and enforces faithfulness, triggering self-correction routing loops back to reasoning if claims are ungrounded.
- FAISS Vector Database: Fast local chunking, embedding, and semantic similarity searching.
- Premium Dark-Theme Interface: A sleek React dashboard built with Vite, showcasing real-time trace playbacks and interactive SVG flowcharts representing agent states.
- RAGAS Compliance Auditing: Interactive Evaluation Studio running batch audits of faithfulness, answer relevance, and context precision.
- Hybrid Execution Modes: Seamless transition between Live LLM Engine (OpenAI/Anthropic) and Local Demo/Simulation fallback.
graph TD
Query[User Query] --> RetrievalAgent[RetrievalAgent: Query Expansion & FAISS Search]
RetrievalAgent --> ReasoningAgent[ReasoningAgent: Synthesize Draft]
ReasoningAgent --> ValidationAgent[ValidationAgent: Hallucination & Faithfulness Audit]
ValidationAgent -- Grounding Failed (Reject) --> ReasoningAgent
ValidationAgent -- Grounding Passed (Approve) --> FinalAnswer[Final Grounded Answer]
- Python 3.10+
- Node.js 18+
- Navigate to the backend directory:
cd backend - Create a virtual environment and activate it:
python3 -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Run the backend:
To run imports correctly, execute from the project root folder:
The FastAPI server will start on
cd .. python3 -m backend.mainhttp://localhost:8000.
- Navigate to the frontend directory:
cd frontend - Install dependencies:
npm install
- Run the development server:
The dashboard will run on
npm run dev
http://localhost:5173.
If the backend is not running, the frontend automatically enters Offline Fallback / Demo Mode.
- Supports interactive document management simulations.
- Employs a smart rule-based simulator matching key search terms (e.g., Deep Learning, RAG, LangGraph, Hallucination, Evaluation, Scheduling) to run realistic self-correction loops and return accurate final grounded answers in the UI.
- Accessible live at: https://Zura16.github.io/Agentic-Research-System