Skip to content

C2DH/journal-of-digital-history-evidence-rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ”’ Confidentiality Note: All sensitive information, including paper titles, paper content, and authorsโ€™ names, has been masked.

๐Ÿงพ Evidence-RAG for Peer Review Auditing in the Journal of Digital History

An evidence-grounded Retrieval-Augmented Generation (RAG) workspace for Journal of Digital History (JDH) papers.
The system supports semantic chunking, vector indexing, retrieval, and LLM-based inference for paper-level review auditing.

Paper

This repository accompanies the preliminary arXiv paper:

Towards an Interactive Evidence-RAG Peer-Review Workspace for the Journal of Digital History
arXiv: 2606.25837

๐Ÿ“Œ Project Overview

This project builds an Evidence-RAG system for JDH review auditing.

The main goal is to connect each reviewer comment to specific evidence from the submitted paper. This helps editors see whether a reviewerโ€™s claim is:

  • โœ… Supported by the paper text
  • โš ๏ธ Partially supported by the paper text
  • โŒ Not supported by the paper text

The system does not replace the editorโ€™s judgment. Instead, it provides a transparent evidence layer that helps editors evaluate reviewer comments more systematically, consistently, and explainably.

Pre-requisites

For this project, we use the Grid5000 infrastructure to run our models. You can find information about registration here. Grid5000 can only be used by academicians or people affiliated to university.

Quick Start

In this repository, you have two options:

  1. Option 1: You can view and use the Jupyter notebooks available in the notebooks directory. To run notebooks 1 and 3, we recommend having a Grid5000 account. See the pre-requisites section above for more information.

  2. Option 2: The same code is also available in the source directory, which allows you to run the models locally.

๐Ÿงญ Workflow Summary

The complete workflow is organized into four main notebooks:

  1. ๐Ÿ“ฅ Paper collection and text conversion
  2. ๐Ÿ“ Review file processing
  3. ๐Ÿง  Vector database and evidence preparation
  4. ๐Ÿ”Ž Final Evidence-RAG review audit

Each notebook performs one important step in the full pipeline.

The main models used or compared in this project are:

๐Ÿ“ฅ 1. Paper Collection and Text Conversion

Notebook file:
0_JDH_Read_jupyterNotebook_Papers_Convert_to_Text (6) (1).ipynb

In this notebook, we collect the JDH article notebooks and convert them into readable text files.

This step extracts article content from the original notebook format, including:

  • ๐Ÿ“„ Markdown cells
  • ๐Ÿ’ป Code cells
  • ๐Ÿ“Š Relevant outputs when needed
  • ๐Ÿท๏ธ Paper metadata

The output of this step is a cleaned text version of each paper. These cleaned files are later used for chunking, embedding, retrieval, and evidence checking.

๐Ÿ“ 2. Review File Processing

Notebook file:
1_JDH_Review_jupyterNotebook (oss_120b_ProcessReviewFiles) (5) (2).ipynb

In this notebook, we process the reviewer PDF files.

We use OpenAI GPT-OSS-120B on Grid5000 to read the review files and split them into structured reviewer comments.

The output contains separated reviewer comments with information such as:

  • ๐Ÿ†” Paper ID
  • ๐Ÿ‘ค Reviewer name or reviewer label
  • ๐Ÿ” Review round
  • ๐Ÿ”ข Comment ID
  • ๐Ÿ’ฌ Individual reviewer comment text

This step is important because each reviewer comment must be checked separately against the paper evidence.

๐Ÿง  3. Vector Database and Paper Evidence Preparation

Notebook file:
2_JDH_VectorDatabase_jupyterNotebook (ProcesPapersFiles) (5) (2).ipynb

In this notebook, we prepare the searchable paper evidence database.

The paper texts are divided into meaningful semantic chunks using:

  • ๐Ÿค– Qwen/Qwen2.5-32B-Instruct for semantic chunking
  • ๐Ÿงฌ BAAI/bge-large-en-v1.5 for text embeddings
  • ๐Ÿ—„๏ธ Qdrant as the vector database

Each paper has its own Qdrant collection. Each chunk keeps useful metadata, including:

  • ๐Ÿ†” Paper ID
  • ๐Ÿ“ Source file
  • ๐Ÿ“š Section title
  • ๐Ÿ”ข Chunk ID
  • ๐Ÿท๏ธ Chunk label
  • ๐Ÿงพ Chunk summary
  • ๐Ÿ“„ Chunk text

This step creates the evidence base that the Evidence-RAG system searches when evaluating reviewer comments.

๐Ÿ”Ž 4. Final Evidence-RAG Review Audit

Notebook file:
3_JDH_EvidenceRAG_jupyterNotebook _Qwen3.5-27B-Claude-4.6-Opus-Reasoning-Distilled-GGUF(Final Review Auditor Grid5000) (6) (1).ipynb

In this notebook, we run the final Evidence-RAG audit.

For each reviewer comment, the system retrieves the most relevant paper chunks from the Qdrant vector database. Then, the model evaluates whether the reviewer comment is supported by the retrieved evidence.

The final output includes:

  • ๐Ÿ’ฌ Reviewer comment ID
  • ๐Ÿ“š Retrieved evidence chunks
  • โœ… Support label
  • ๐Ÿง  Reasoning summary
  • ๐Ÿ“ˆ Retrieval strength
  • ๐Ÿค– Model support strength
  • ๐ŸŽฏ Evidence specificity
  • ๐Ÿงฉ Section coverage
  • ๐Ÿ“Š Final confidence score

This final audit file gives editors a structured view of how each reviewer comment relates to the actual paper content.

๐Ÿ“Š Confidence Score Formula

The final confidence score combines four components:

Confidence = 0.15 ร— Retrieval Strength
           + 0.25 ร— Model Support Strength
           + 0.45 ร— Evidence Specificity
           + 0.15 ร— Section Coverage

๐Ÿงฎ Meaning of Each Confidence Component

๐Ÿ“ˆ Retrieval Strength

Retrieval Strength measures how strongly the vector database retrieved relevant chunks for the reviewer comment.

It is based on the similarity scores of the retrieved evidence chunks.

๐Ÿค– Model Support Strength

Model Support Strength measures how confidently the model judges that the reviewer comment is supported by the retrieved evidence.

This score reflects the modelโ€™s assessment of the relationship between the reviewer comment and the retrieved chunks.

๐ŸŽฏ Evidence Specificity

Evidence Specificity measures how directly the retrieved chunks address the reviewer comment.

This is important because a retrieved chunk may be generally related to the paper but not specific enough to support the exact reviewer claim.

๐Ÿงฉ Section Coverage

Section Coverage measures how broadly the retrieved evidence covers different sections of the paper.

For example, if a paper has five sections and the retrieved evidence comes from two unique sections, then:

Section Coverage = 2 / 5 = 0.40

This score helps show whether the evidence is concentrated in one part of the paper or spread across multiple relevant sections.

๐Ÿง‘โ€โš–๏ธ Role of the Editor

The system does not make the final editorial decision.

Instead, it supports the editor by showing:

  • ๐Ÿ“Œ Which paper passages were retrieved
  • โœ… Whether the model thinks the reviewer comment is supported
  • ๐Ÿง  Why the model made that judgment
  • ๐Ÿ“Š How the confidence score was calculated
  • ๐Ÿ—‚๏ธ Which sections of the paper were used as evidence

The editor remains the final human decision-maker.

๐ŸŽฏ Final Purpose

The purpose of this workflow is to make the review-auditing process more:

  • ๐Ÿ” Transparent
  • ๐Ÿ“š Evidence-based
  • ๐Ÿงฉ Systematic
  • ๐Ÿง  Explainable
  • ๐Ÿง‘โ€โš–๏ธ Editor-friendly

More specifically, the system aims to:

  • ๐Ÿš€ Generate rapid, structured feedback that helps authors improve their papers when reviewer capacity is limited
  • ๐Ÿค Support multi-agent and multi-role review workflows that can be compared with human judgments
  • ๐Ÿ“– Offer guided reading by showing the exact passages and artifacts used as evidence
  • ๐Ÿงช Help check consistency between reported methods, supplied code, and reviewer comments
  • ๐Ÿ—‚๏ธ Provide editors with a structured evidence layer for reviewer-comment evaluation

By combining reviewer comments, paper evidence, vector retrieval, and model-based evaluation, the Evidence-RAG system helps editors better understand how strongly each reviewer comment is grounded in the submitted paper.

โœ… Summary

This project creates a complete Evidence-RAG pipeline for JDH review auditing:

JDH papers
   โ†“
Text extraction
   โ†“
Semantic chunking
   โ†“
Vector database construction
   โ†“
Reviewer comment extraction
   โ†“
Evidence retrieval
   โ†“
Model-based support judgment
   โ†“
Editor-facing audit output

The final result is an editor-support system that links reviewer claims to paper evidence and explains how strongly each claim is supported.

About

Evidence-grounded RAG system for Journal of Digital History papers, with semantic chunking, vector indexing, retrieval, and LLM inference for paper-level analysis.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors