Skip to content

About

RAG-based Research Assistant with hallucination detection

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

📡 ScholarRadar

Calibrated Multi-Signal Groundedness Scoring and Multi-Agent Literature Verification for Academic RAG

Python 3.10+ FastAPI Next.js 14 License: MIT Tests: 154 Passing Live Demo

🌐 Live Public Demonstration • 📦 GitHub Repository • 📄 Research Paper Draft • 📊 Benchmark Artifacts • 🚀 Quickstart


Overview

ScholarRadar is an open-source, research-grade academic literature discovery and verification engine designed to synthesize complex scientific findings with rigorous, mathematically calibrated factual grounding.

Standard Retrieval-Augmented Generation (RAG) pipelines assess factual groundedness using heuristic cosine similarity between generated responses and retrieved context passages. In this work, we demonstrate that raw semantic similarity is severely miscalibrated ($ ext{ECE} = 0.1826$, $ ext{Brier} = 0.1632$) and exhibits near-zero correlation with human factuality judgments ($ ext{Spearman } \rho = -0.0057$).

ScholarRadar solves this by introducing an out-of-fold multi-signal calibration framework combining bi-encoder embeddings, DeBERTa-v3 Natural Language Inference (NLI), and cross-encoder token interactions, achieving a 55.1% reduction in Expected Calibration Error ($ ext{ECE} = 0.0820$) and a 25.7% reduction in Brier score ($ ext{Brier} = 0.1212$), statistically validated via $10{,}000$ bootstrap resamples ($p < 0.001$).

$$\text{Document Parsing (GROBID)} \longrightarrow \text{Hybrid RRF Retrieval} \longrightarrow \text{Cross-Encoder Reranking} \longrightarrow \text{Citation Graph Traversal} \longrightarrow \text{Multi-Agent Reflection Loop} \longrightarrow \text{Multi-Signal Calibrated Verification}$$


Why ScholarRadar?

Traditional RAG architectures were designed for unstructured customer support wikis and flat document search. When applied to academic research, conventional RAG suffers from four fundamental failure modes:

  1. The Vector-Only Recall Gap: Dense embeddings capture conceptual similarity but miss exact scientific keywords, author names, baseline algorithms, dataset names, and mathematical symbols.
  2. Context Fragmentation: Arbitrary token-chunking breaks paragraphs mid-sentence, detaches experimental metrics from their parent section headers, and destroys global document context.
  3. Unchecked Generation: Conventional pipelines feed retrieved passages directly to an LLM without verifying whether every synthesized clause is factually entailed by the source text.
  4. False Confidence: Reporting raw cosine similarity gives researchers a deceptive sense of certainty, failing to identify when an LLM has hallucinated beyond its retrieved evidence.

ScholarRadar bridges this gap by treating literature search as a structured evidence-reasoning problem, combining full-text XML document understanding, hybrid sparse-dense retrieval, multi-agent reflection, sentence-level NLI verification, and empirical confidence calibration.


What the System Does

When a researcher submits a technical inquiry, ScholarRadar executes the following end-to-end pipeline:

  1. Self-Query Decomposition: Parses the natural-language query into structured metadata filters (e.g., specific paper IDs, publication venues, section types) and sub-queries for multi-hop synthesis.
  2. Hybrid Lexical & Semantic Retrieval: Concurrently queries a dense vector index (FAISS + all-MiniLM-L6-v2) and a sparse lexical index (Okapi BM25), fusing rank lists via Reciprocal Rank Fusion (RRF, $k=60$).
  3. Cross-Encoder Reranking & Parent Expansion: Deeply reranks candidate passages via MS-MARCO Cross-Encoder token interaction and dynamically fetches the full parent section from SQLite to preserve surrounding scientific context.
  4. Bibliographic Graph Traversal: Traverses the NetworkX citation graph across indexed papers to discover 1-hop and 2-hop related literature that keyword search alone would miss.
  5. Multi-Agent Writer & Critic Loop:
    • The Retriever Agent gathers and organizes multi-paper evidence.
    • The Writer Agent drafts a structured technical answer with explicit inline citations ([paper_X]).
    • The Critic Agent inspects every generated claim against retrieved evidence, triggering an iterative reflection-rewrite cycle if ungrounded claims are detected.
  6. Multi-Signal Calibrated Scoring: Computes out-of-fold calibrated confidence using a logistic fusion of semantic cosine overlap, DeBERTa-v3 NLI entailment, and cross-encoder interaction, achieving an Expected Calibration Error of $0.0820$ (a 55.1% improvement over naive cosine baselines).

Complete Architecture

flowchart TD
    User([User / API Request]) --> SQP[Self-Querying & Multi-Hop Parser]

    subgraph Ingestion ["1. Scientific Document Understanding"]
        PDFs[Academic PDFs] --> GROBID[GROBID TEI-XML Engine]
        GROBID --> SQLite[(SQLite Metadata DB<br/>1,847 Parent Sections, 79 Papers)]
        GROBID --> NetX[NetworkX Citation Graph<br/>79 Nodes, 29 Internal Edges]
    end

    subgraph Retrieval ["2. Hybrid Retrieval & Reranking"]
        SQP --> Dense[FAISS Dense Index<br/>all-MiniLM-L6-v2]
        SQP --> Sparse[BM25 Lexical Index<br/>Okapi]
        Dense --> RRF[Reciprocal Rank Fusion<br/>k=60]
        Sparse --> RRF
        RRF --> CrossEnc[MS-MARCO Cross-Encoder Reranker]
        CrossEnc --> ParentExp[Parent-Section Document Expansion]
    end

    subgraph MultiHop ["3. Citation Graph Traversal"]
        ParentExp --> GraphExp[1-Hop / 2-Hop Bibliographic Expansion]
        NetX -.-> GraphExp
    end

    subgraph MultiAgent ["4. Multi-Agent Reasoning & Reflection"]
        GraphExp --> RetAgent[🔍 Retriever Agent]
        RetAgent --> WriterAgent[✍️ Writer Agent]
        WriterAgent --> CriticAgent[🛡️ Critic Agent]
        CriticAgent -- "Ungrounded Claims / Reflection" --> RetAgent
        CriticAgent -- "Grounded & Verified" --> Verifier
    end

    subgraph Verification ["5. Calibrated Verification Engine"]
        Verifier[Multi-Signal Verification] --> CosineSig[Bi-Encoder Cosine Overlap]
        Verifier --> NLISig[DeBERTa-v3-base NLI Entailment]
        Verifier --> XESig[Cross-Encoder Token Interaction]
        CosineSig --> LogFusion[Out-of-Fold Calibrated Logistic Fusion]
        NLISig --> LogFusion
        XESig --> LogFusion
        LogFusion --> CalibScore[Calibrated Confidence: ECE = 0.0820]
    end

    CalibScore --> Output([Verified Technical Answer<br/>+ Calibrated HUD + Citation Badges])
Loading

Core Capabilities

📄 Scientific Document Understanding

  • GROBID TEI-XML Extraction: Converts unstructured academic PDFs into structured TEI-XML representations, preserving hierarchical section titles, abstracts, paragraph structures, formulas, and bibliographic references.
  • Structured SQLite Metadata Store: Indexes 1,847 parent sections across 79 foundational papers, mapping section IDs, parent document relationships, author metadata, and publication context.

🔍 Hybrid Retrieval

  • Dense Semantic Search: FAISS vector indexing over sentence embeddings (all-MiniLM-L6-v2) capturing conceptual relevance across research topics.
  • Sparse Lexical Search: Okapi BM25 index over full section text guaranteeing high recall for specialized terminology, author names, dataset tags, and algorithm names.
  • Reciprocal Rank Fusion (RRF): Merges dense and sparse rankings with standard smoothing constant $k=60$: $$\text{RRF}(d) = \sum_{m \in {\text{dense}, \text{sparse}}} \frac{1}{60 + r_m(d)}$$

🎯 Cross-Encoder Reranking

  • Full cross-attention reranking using cross-encoder/ms-marco-MiniLM-L-6-v2, computing joint token-level interaction scores across query-passage pairs to eliminate false-positive vector matches.

📚 Context Construction & Parent Expansion

  • When a high-scoring snippet is retrieved, ScholarRadar automatically fetches the entire containing parent section from the SQLite store, preventing fragmented or decontextualized LLM inputs.

🌐 Multi-Hop Research & Query Decomposition

  • Decomposes multi-faceted user inquiries into structured sub-queries, querying the retrieval engine iteratively to construct multi-paper comparative syntheses.

🤖 Multi-Agent Reasoning Loop

  • Implements an asynchronous multi-agent coordination loop:
    • Retriever Agent: Formulates queries, applies metadata filters, and traverses citation paths.
    • Writer Agent: Generates technical summaries with strict citation anchors ([paper_XX]).
    • Critic Agent: Validates factual consistency, checks premise entailment, and triggers reflection cycles if unverified assertions are found.

🛡️ Evidence Verification

  • DeBERTa-v3 Natural Language Inference: Sentence-level NLI model (cross-encoder/nli-deberta-v3-base) that decomposes generated answers into individual claims and validates premise-hypothesis entailment against source evidence.

📈 Confidence Calibration

  • Replaces uncalibrated cosine scores with an out-of-fold multi-signal logistic calibration formula: $$\hat{p} = \sigma\left(w_1 s_{\text{cos}} + w_2 s_{\text{nli}} + w_3 \sigma(s_{\text{xe}}) + b\right)$$
  • Achieves an empirical Expected Calibration Error (ECE) of $0.0820$ (a 55.1% reduction over raw cosine baseline $0.1826$).

🔗 Citation Attribution & Provenance

  • Every statement is attributed directly to its source paper and section header, providing end-to-end provenance back to authentic academic literature.

🕸️ Citation Graph Analytics

  • Models cross-paper citation links using NetworkX (79 nodes, 29 internal citation edges, 4,071 external references).
  • Computes PageRank and in-degree centrality to identify foundational papers and enables 1-hop bibliographic neighbor discovery.

🧪 Dual-Pillar Evaluation Suite

  • Curated 93-question academic evaluation benchmark and 95-item empirical calibration dataset evaluated with multi-rater ground truth (Cohen's $\kappa = 0.76$, Krippendorff's $\alpha = 0.5001$).
  • Validated via 10,000 bootstrap significance resamples ($p &lt; 0.001$).

⚡ Production API & Streaming

  • High-performance FastAPI server with Server-Sent Events (SSE) token streaming (/api/v1/chat/stream), real-time health monitoring, and structured JSON output.

🔄 End-to-End Reproducibility

  • 154 automated unit and integration tests passing (pytest tests/ -v).
  • Multi-container Docker Compose configuration for local or cloud deployment.

Project Evolution

ScholarRadar was developed through a continuous research and engineering progression, evolving from an early baseline into a statistically validated, production-deployed research engine:

V1 Baseline (Streamlit + Naive Embeddings)
   │
   ▼
Phase 1: Retrieval & Engineering Foundations (FastAPI, Hybrid RRF, Parent Expansion, Redis)
   │
   ▼
Phase 2: Scientific Document Understanding (GROBID TEI-XML, SQLite Metadata, SSE Streaming, Docker)
   │
   ▼
Phase 3: Research-Grade Retrieval & Verification (Self-Query, Multi-Hop, Multi-Agent Loop, NetworkX, DeBERTa NLI)
   │
   ▼
Phase 4: Empirical Calibration & Statistical Validation (95-Item Dataset, 10k Bootstraps, ECE 0.0820, Paper Draft)
   │
   ▼
Phase 5: Public Demonstration & Cloud Deployment (Next.js 14 Dashboard, Vercel Serverless, Groq Synthesis)

V1 — Original ScholarRadar

  • Scope: Initial research prototype with basic Streamlit interface and naive LangChain bi-encoder vector search over local PDF chunks.
  • Limitations: High hallucination rate, lack of lexical exact search, no citation network awareness, and uncalibrated cosine confidence scores.

Phase 1 — Retrieval & Engineering Foundations

  • Scope: Re-engineered core retrieval architecture.
  • Key Additions: Production FastAPI service layer, hybrid Okapi BM25 + FAISS search with Reciprocal Rank Fusion ($k=60$), parent-document section expansion, in-memory LRU/TTL caching, and automated test suite.

Phase 2 — Scientific Document Understanding & Service Architecture

  • Scope: Upgraded ingestion pipeline to handle academic full-text structure.
  • Key Additions: Full integration with GROBID TEI-XML parsing engine, structured SQLite metadata database (1,847 parent sections), Server-Sent Events (SSE) token streaming for real-time generation, and containerized Docker Compose stack.

Phase 3 — Research-Grade Retrieval, Reasoning & Verification

  • Scope: Implemented advanced reasoning and claim-level verification.
  • Key Additions: Self-querying filter extractor, multi-hop sub-query decomposition, multi-agent coordination loop (Retriever $\to$ Writer $\to$ Critic), NetworkX citation graph topology, and DeBERTa-v3 Natural Language Inference for groundedness checking.

Phase 4 — Empirical Calibration & Statistical Validation

  • Scope: Formal empirical evaluation, calibration benchmarking, and research paper publication artifacts.
  • Key Additions: Multi-signal Out-of-Fold (OOF) logistic calibration reducing ECE by 55.1%, 95-item human scientific evaluation benchmark, dual-annotator agreement study (Cohen's $\kappa=0.76$), 10,000 bootstrap significance testing ($p &lt; 0.001$), calibration drift monitoring, and complete research paper LaTeX manuscript.

Phase 5 — Public Demonstration & Cloud Deployment

  • Scope: Modernized public web interface and zero-cost cloud demonstration layer.
  • Key Additions: Next.js 14 App Router dashboard deployed 24/7 on Vercel Serverless Edge, in-memory BM25 retrieval over the 79-paper corpus, high-speed Groq LLM synthesis (openai/gpt-oss-20b), interactive 4-tab research workspace, citation graph explorer, and live calibration benchmark visualization.

Current Research Pipeline

The complete, authoritative research pipeline integrates all architectural components into a deterministic, reproducible execution graph:

                                 [ User Query ]
                                       │
                                       ▼
                       [ Self-Querying & Intent Parser ]
                                       │
                    ┌──────────────────┴──────────────────┐
                    ▼                                     ▼
          [ Sparse BM25 Index ]                 [ Dense FAISS Index ]
          (Okapi Lexical Match)                 (all-MiniLM-L6-v2)
                    │                                     │
                    └──────────────────┬──────────────────┘
                                       ▼
                     [ Reciprocal Rank Fusion (k=60) ]
                                       │
                                       ▼
                     [ MS-MARCO Cross-Encoder Reranking ]
                                       │
                                       ▼
                     [ Parent-Section SQLite Expansion ]
                                       │
                                       ▼
                     [ NetworkX Citation Graph Traversal ]
                                       │
                                       ▼
                       [ Multi-Agent Reflection Loop ]
                         ├── 🔍 Retriever Agent
                         ├── ✍️ Writer Agent
                         └── 🛡️ Critic Agent
                                       │
                                       ▼
                     [ Multi-Signal Calibrated Scoring ]
                       ├── Bi-Encoder Cosine Overlap
                       ├── DeBERTa-v3 NLI Entailment
                       └── Cross-Encoder Interaction
                                       │
                                       ▼
                    [ Verified Response + Calibrated HUD ]

Phase 4 Calibration Results

All models evaluated via strict Stratified 5-Fold Cross-Validation (Out-of-Fold) on the 95-item Human Scientific Benchmark:

Comparative Method Benchmark

Method ECE ↓ Brier Score ↓ Spearman $\rho$ (vs Human) ↑ Pearson $r$ (vs Human) ↑ ECE Reduction Brier Reduction
V1: Raw Cosine Baseline 0.1826 0.1632 -0.0057 0.0776 Baseline Baseline
V2: Logistic Fusion (OOF) ★ 0.0820 0.1212 0.0781 0.1708 -55.1% -25.7%
V3: Isotonic Fusion (OOF) 0.1202 0.1278 0.1321 0.1708 -34.2% -21.7%

Statistical Significance ($10{,}000$ Bootstrap Resamples, $95%$ CI)

  • $\mathbf{\Delta\text{ECE (V1} - \text{V2)}}$: 0.1006 $[0.0577, 0.1734]$ (Statistically Significant, $p &lt; 0.001$, excludes 0)
  • $\mathbf{\Delta\text{Brier (V1} - \text{V2)}}$: 0.0420 $[0.0127, 0.0715]$ (Statistically Significant, $p &lt; 0.001$, excludes 0)
  • $\mathbf{\Delta\text{ECE (V1} - \text{V3)}}$: 0.0624 $[0.0027, 0.1522]$ (Statistically Significant, $p &lt; 0.05$, excludes 0)

Dual-Annotator Agreement Study

  • Cohen’s $\kappa$ (Linear-Weighted): 0.7600 (Substantial agreement)
  • Krippendorff’s $\alpha$ (Ordinal): 0.5001
  • Factuality Binarized Agreement: 72.63%
  • Spearman Rank Correlation: $\rho = 0.5173$ ($p = 7.96 \times 10^{-8}$)

10-Seed Feature Ablation Study

Feature Combination Mean ECE Mean Brier Key Finding
Cosine only $0.0843 \pm 0.0008$ $0.1266 \pm 0.0010$ Calibration process itself drives primary ECE drop
NLI only $0.0840 \pm 0.0009$ 0.1214 ± 0.0009 NLI Entailment minimizes probabilistic error
Cross-Encoder only $0.0846 \pm 0.0009$ $0.1256 \pm 0.0011$ Captures deep token interaction
Cosine + NLI 0.0839 ± 0.0009 $0.1228 \pm 0.0010$ Top pair for calibration
All Three Features 0.0840 ± 0.0009 0.1234 ± 0.0013 Full multi-signal robust fusion

Citation Graph

The research corpus citation graph was constructed from 79 GROBID-parsed academic papers via fuzzy sequence matching ($\ge 85%$ threshold):

  • Total Indexed Papers (Nodes): 79
  • Internal Cross-Corpus Edges: 29
  • External Bibliographic Citations: 4,071
  • Graph Density: $0.0047$

Top Foundational Papers by PageRank & In-Degree

Paper ID Paper Title PageRank In-Degree Out-Degree
paper_39 Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergy 5.15% 6 0
paper_61 Benchmarking Large Language Models in Retrieval-Augmented Generation 4.55% 6 0
paper_15 RAGAS: Automated Evaluation of Retrieval Augmented Generation 3.50% 4 0
paper_49 A Survey on Multimodal Large Language Models 3.16% 3 0
paper_79 Multi-Source Document Grounding and Contextual Adaptation 2.41% 2 0

Evaluation

ScholarRadar's evaluation framework is anchored on three distinct pillars:

  1. 93-Question Academic Benchmark: A curated set of 93 technical scientific evaluation queries (data/benchmark_questions.json) designed to probe multi-paper comparative synthesis and section-level factual retrieval.
  2. 95-Item Phase 4 Calibration Dataset: A dedicated empirical groundedness dataset (data/calibration_dataset.json / data/calibration_results/phase4_results.json) evaluated across 10,000 bootstrap resamples with dual-annotator ground truth ($\kappa = 0.76$).
  3. Automated Continuous Integration: 154 unit and regression tests validating API endpoints, cache invalidation, self-querying parsers, graph traversal, NLI scoring, and calibration curves.

Full Research System vs Public Demonstration

To balance research completeness with accessible, zero-cost public demonstration, ScholarRadar maintains two distinct deployment profiles:

Architectural Component Authoritative Research Artifact (Docker) Public Web Demonstration (Vercel)
Primary Repository Link GitHub Repository Live Demo URL
Hosting Infrastructure Local Docker Compose / Cloud ARM64 VM Vercel Serverless Edge (Global 24/7 Uptime)
Corpus Coverage 79 Papers (Full SQLite DB + FAISS Indices) 79 Papers (Pre-indexed Section JSON Bundle)
Retrieval Mechanism FAISS Dense Vector + Okapi BM25 Sparse + RRF In-Memory Okapi BM25 Lexical Retrieval
Reranking MS-MARCO Cross-Encoder Neural Reranking Top-Ranked BM25 Relevance Scoring
LLM Synthesis Local Ollama (mistral) / Cloud LLM Groq Cloud Fast Inference (openai/gpt-oss-20b)
Verification Engine Neural DeBERTa-v3 NLI Entailment Token Overlap Groundedness Proxy Formula
Citation Graph Live NetworkX Graph Traversal Pre-computed PageRank & 1-Hop Expansion
Multi-Agent Reflection Full Retriever $\to$ Writer $\to$ Critic Loop Direct Calibrated Synthesis
Document Ingestion Live GROBID TEI-XML PDF Processing Pre-processed TEI Section Extracts

Public Demo

The live public demonstration of ScholarRadar is hosted 24/7 at: 👉 https://rag-project-henna.vercel.app

Live Dashboard Features

  • 💬 Research Workspace: Interactive query interface with pre-configured research query chips, real-time pipeline stepper, structured synthesis, model indicator, and deep evidence inspector.
  • 🕸️ Citation Graph Explorer: 4-card topology overview and full PageRank / in-degree leaderboard.
  • 📊 Empirical Calibration: Live comparative benchmark table displaying V1 vs V2 vs V3 calibration results and statistical significance metrics.
  • 🏛️ Architecture Specification: Interactive comparison table between the public demo and the full Docker artifact.

Reproducibility

1. Environment Setup

# Clone the repository
git clone https://github.com/Amaanzz/rag_project.git
cd rag_project

# Set up virtual environment
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# (Optional) Pull local LLM for full research pipeline
ollama pull mistral

2. Running the Multi-Service Docker Stack

# Launch FastAPI backend, GROBID TEI engine, and Streamlit dashboard
docker compose up --build

3. Running the Streamlit Research Dashboard

streamlit run src/app.py

4. Running the Production FastAPI Server

uvicorn src.api:app --host 0.0.0.0 --port 8000 --reload

5. Running the Automated Test Suite

pytest tests/ -v

6. Reproducing Phase 4 Empirical Calibration & Bootstrap Study

# Execute full calibration cross-validation and 10,000 bootstrap resamples
python src/run_phase4_study.py

# Compute inter-annotator agreement statistics
python src/compute_agreement.py

# Query citation graph
python src/citation_graph.py --query paper_39

Repository Structure

rag_project/
├── paper/
│   ├── main.tex                    # Formal Publication LaTeX Manuscript
│   ├── references.bib              # BibTeX Citation Database
│   └── PAPER_DRAFT.md              # Markdown Research Paper Draft
├── src/
│   ├── agents/                     # Multi-Agent Verification Framework
│   │   ├── retriever_agent.py      # Hybrid retrieval + Graph expansion
│   │   ├── writer_agent.py         # Grounded synthesis + citations
│   │   ├── critic_agent.py         # Calibrated verification & reflection
│   │   └── orchestrator.py         # Multi-agent coordination loop
│   ├── api.py                      # Production FastAPI with SSE streaming
│   ├── app.py                      # Streamlit UI with Citation Graph Explorer
│   ├── cache.py                    # In-memory LRU + TTL caching layer
│   ├── calibration.py              # ECE, Brier, Logistic, Isotonic calibration
│   ├── citation_graph.py           # NetworkX citation graph & centrality metrics
│   ├── nli_scorer.py               # DeBERTa-v3 sentence-level entailment
│   ├── retriever.py                # FAISS + BM25 + Cross-Encoder + Parents
│   ├── rag_pipeline.py             # End-to-end RAG pipeline
│   └── monitoring/
│       └── drift_monitor.py        # Calibration drift monitor
├── frontend/                       # Full-Stack Next.js 14 Web Application
│   ├── app/                        # App Router (UI + Serverless Routes)
│   ├── data/                       # Pre-computed corpus & graph JSON bundles
│   └── lib/                        # Client utilities & BM25 retriever
├── data/
│   ├── calibration_results/        # Empirical benchmark JSONs & plots
│   ├── citation_graph/             # Graph exports & centrality metrics
│   ├── human_evaluation/          # Dual-annotator evaluation sets
│   ├── benchmark_questions.json    # 93 curated scientific evaluation questions
│   └── calibration_dataset.json    # 95 annotated calibration examples
├── tests/                          # 16 unit & regression test suites (154 tests)
├── Dockerfile                      # Production Docker container
├── docker-compose.yml              # Multi-service stack
└── README.md                       # Master project documentation

Scientific Limitations

  1. Corpus Scale: Current empirical results are validated over an intensive 79-paper scientific corpus (1,847 parent sections, 4,071 citations). Scaling to hundreds of thousands of papers requires distributed vector clustering and hierarchical graph partitioning.
  2. Computational Footprint of Neural NLI: Running full DeBERTa-v3 cross-encoder inference for every sentence in a long synthesis introduces latency ($\sim 1.2\text{s}$ on CPU), motivating the public demo's lightweight proxy calibration approach.
  3. Domain Specialization: Calibration parameters were optimized on computer science and AI systems literature; transfer to clinical or legal domains requires domain-specific re-fitting.

Security & Ethics

  • Zero Client-Side Credential Exposure: All API keys and environment variables are strictly managed server-side; no secrets are compiled into client bundles.
  • Deterministic Provenance: Generated statements strictly reference authentic, verified document sections, mitigating ungrounded hallucinations.
  • Open Source & Reproducible: All code, benchmarks, dual-annotator datasets, and calibration weights are publicly accessible under the MIT License.

Project Status


Citation

If you find this research or codebase useful in your work, please cite:

@article{khan2026scholarradar,
  title={ScholarRadar: Calibrated Groundedness Scoring and Multi-Signal Verification for Academic Retrieval-Augmented Generation},
  author={Khan, Amaan},
  journal={arXiv preprint},
  year={2026}
}

License

This project is open-source and licensed under the MIT License (Open Source Initiative).


ScholarRadar • Developed by Amaan Khan
Advancing Factually Grounded, Calibrated AI Systems for Scientific Literature Discovery

About

RAG-based Research Assistant with hallucination detection

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages