Downloads · 30 days
0
qaz159qaz159/review-knowledge-base-tool
review-knowledge-base-tool is a machine learning model from qaz159qaz159. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A RAG (Retrieval-Augmented Generation) system that scrapes academic paper reviews from OpenReview and builds a searchable vector database. Designed for AI agents to perform Precedent Checks — verifying whether a criti…
Downloads · 30 days
0
Access
Public
Updated Feb 11, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py61.7 KB · 82%
From the Hugging Face model README
A RAG (Retrieval-Augmented Generation) system that scrapes academic paper reviews from OpenReview and builds a searchable vector database. Designed for AI agents to perform Precedent Checks — verifying whether a criticism of a paper aligns with historical review norms.
| File | Purpose |
|---|---|
01_scrape_openreview.py | Scrape submissions, decisions, meta-reviews, and reviews from OpenReview |
02_build_chromadb.py | Build a ChromaDB vector database (embed Title + Abstract) |
03_push_to_hf.py | Push/pull data to HuggingFace Datasets for versioning and sharing |
04_query_rag.py | Query the database by semantic similarity (interactive or CLI) |
05_agent_integration.py | ReviewerRAG class for programmatic Agent integration |
config.py | Central configuration (venues, credentials, paths) |
run_pipeline.sh | One-click pipeline: scrape → build → push |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export OPENREVIEW_USERNAME="[email protected]"
export OPENREVIEW_PASSWORD="your-password"
export HF_TOKEN="hf_xxxxxxx"
# Full pipeline
./run_pipeline.sh
# Or step by step
python 01_scrape_openreview.py
python 02_build_chromadb.py --require-decision --require-meta-review --rebuild
# Interactive
python 04_query_rag.py
# Single query
python 04_query_rag.py --query "using TTS synthetic data for training"
# Precedent check
python 04_query_rag.py --query "weak evaluation methodology" --check
# JSON output (for agents)
python 04_query_rag.py --query "..." --json
from agent_integration import ReviewerRAG
rag = ReviewerRAG()
result = rag.check_criticism(
paper_abstract="We propose a novel TTS model using synthetic data...",
criticism="The paper relies on synthetic data which is unreliable."
)
print(result["is_valid_criticism"]) # True/False
print(result["suggestion"]) # How to revise the criticism
Each record contains:
| Field | Description |
|---|---|
title | Paper title |
abstract | Paper abstract |
decision | Accept (Poster/Spotlight/Oral) or Reject |
meta_review | Area Chair's summary and final judgment |
reviews | List of reviewer ratings + comments |
keywords | Paper keywords |
venue / year | Conference name and year |
# Push data
python 03_push_to_hf.py --require-decision
# Pull data on another machine
python 03_push_to_hf.py --pull
MIT