aivolcano/CiteScan
Sobre
Scan the Hallucination Citation of Academic papers. Convert second-hand citation to official version
Aprendizado e educaçãoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalWe deploy the model on ModelScope[https://www.modelscope.cn/studios/aivolcano/CiteScanning/summary].
CiteScan: Check References, Confirm Truth.
Break Free from Secondary Citations with BibTeX Directly from Authoritative Sources
Your research deserves references rooted in original sources. Your tool is no longer a simple format checker—it is:
✅ A Literature Authenticity Verifier – First, it confirms whether the paper exists and who wrote it. ✅ An Official Citation Generator – Bypassing all intermediate processing, it accesses the original metadata directly from academic databases. ✅ A Citation Source Purifier – Eliminating formatting errors, missing information, or “hallucinated references” caused by secondary processing from platforms like Google Scholar or arXiv.
This means: Before submission—no more doubts from reviewers due to inconsistent citation formats. When writing papers—no more tedious verification of full author names or full conference names. During literature review—quickly verify whether a “suspicious reference” is authentic.
CiteScan is an open-source and free tool designed to detect hallucinated references in academic writing. As AI coding assistants and writing tools become more prevalent, they sometimes generate plausible-sounding citations that do not actually exist. CiteScan addresses this issue by validating every bibliography entry against multiple authoritative academic databases—including arXiv, CrossRef, DBLP, Semantic Scholar, OpenAlex, and Google Scholar—to confirm their authenticity.
Going beyond simple verification, CiteScan uses rule-based algorithms to analyze whether the cited papers genuinely support the claims made in your text. Thanks to the free accessibility for academic databases across CS and AI areas, our system will cost $0 for maintenance after development.
🚀 Quick Start
Option 1: Web Interface (Gradio)
# Install dependencies
pip install -r requirements.txt
# Run Gradio interface
python app.py
Access at http://localhost:7860
Option 2: API Service (FastAPI)
# Install dependencies
pip install -r requirements.txt
# Run API service
python main.py
Access API at http://localhost:8000
API Documentation at http://localhost:8000/docs
Option 3: Docker
# Run both services with Docker Compose
docker-compose up -d
# Gradio: http://localhost:7860
# API: http://localhost:8000
📚 Documentation
- API Documentation - Complete API reference and examples
- Deployment Guide - Production deployment instructions
🛡 Why CiteScan?
🚫 NO Hallucinations: Annotate citations that don't exist or have mismatched metadata across year, authors, and title.
📋 Ground Truth Reference: Provide the link if the citations are flagged to issued entry. You can click the Open paper or DOI button to access the real-world metadata, and then cite the BibTeX from the press website.

🏠 Top-tier Research Organizations: Cooperate with National University of Singapore (NUS) and Shanghai Jiao Tong University (SJTU).
🔌 RESTful API: Production-ready API for integration with other tools and services.
🔍 References Validation
Multi-Source Verification: Validates metadata against arXiv, CrossRef, DBLP, Semantic Scholar, OpenAlex, and Google Scholar.
Covert citation from pre-print version to official version: After clicking the blue button (
Open paperorDOI), the official website will display. Click thecitebutton, you can copy the official BibTex.

Verification Workflow
- Parse BibTeX: Extract entries and metadata
- Priority-based Search: Query databases in priority order
- Metadata Comparison: Compare title, authors, year, venue
- Duplicate Detection: Identify duplicate entries
- Result Generation: Provide detailed verification report
📖 API Usage Examples
Python
import requests
url = "http://localhost:8000/api/v1/verify"
bibtex = """
@article{vaswani2017attention,
title={Attention is all you need},
author={Vaswani, Ashish and Shazeer, Noam},
year={2017}
}
"""
response = requests.post(url, json={"bibtex_content": bibtex})
result = response.json()
print(f"Verified: {result['verified_count']}/{result['total_count']}")
cURL
curl -X POST "http://localhost:8000/api/v1/verify" \
-H "Content-Type: application/json" \
-d '{"bibtex_content": "@article{example,title={Test},year={2023}}"}'
See API_DOCS.md for complete API documentation.
⚙️ Configuration
Create a .env file from the template:
cp .env.example .env
Key configuration options:
# Server ports
API_PORT=8000
GRADIO_PORT=7860
# Performance
MAX_WORKERS=10
CACHE_ENABLED=true
CACHE_TTL=3600
# Logging
LOG_LEVEL=INFO
LOG_FORMAT=json
See DEPLOYMENT.md for complete configuration guide.
🔧 Development
Setup Development Environment
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Copy environment template
cp .env.example .env
# Run in development mode
ENVIRONMENT=development python main.py
📊 Monitoring
Health Check
curl http://localhost:8000/api/v1/health
Statistics
curl http://localhost:8000/api/v1/stats
Logs
Logs are stored in logs/citescan.log in JSON format:
tail -f logs/citescan.log | jq '.'
⚠️ Case Study for False Positives
Authors Mismatch:
- Reason: Different databases deal with a longer list of authors with different strategies, like truncation.
- Action: Verify if main authors match
Venues Mismatch:
- Reason: Abbreviations vs. full names, such as "ICLR" vs. "International Conference on Learning Representations"
- Action: Both are correct.
Year GAP (±1 Year):
- Reason: Delay between preprint (arXiv) and final version publication
- Action: Verify which version you intend to cite. We recommend citing the version from the official press website. Lower ratio of arXiV BibTex will make your paper more convincing.
Non-academic Sources:
- Reason: Blogs and APIs are not indexed in academic databases.
- Action: Verify URL, year, and title manually.
🙏 Acknowledgments
CiteScan uses multiple data sources:
- arXiv API
- CrossRef API
- Semantic Scholar API
- DBLP API
- OpenAlex API
- Google Scholar (web scraping)
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📧 Contact
For questions and support:
- Email: [email protected]
- GitHub Issues: [Repository URL]
🚀 ModelScope Deployment
To deploy on ModelScope 创空间:
# Add ModelScope remote
git remote add modelscope "http://oauth2:[email protected]/studios/YOUR_USERNAME/CiteScan.git"
# Push to ModelScope
git push modelscope main
# Or force push if needed
git push modelscope main --force
After pushing, visit your ModelScope studio and click "上线空间展示" or "立即发布" to deploy the Gradio application.
🚀 Hugging Face Spaces 部署
将代码推送到 Hugging Face Spaces:
安装 Hugging Face CLI 并登录(如未安装):
pip install huggingface_hub huggingface-cli login添加 Hugging Face 远程仓库:
git remote add hf https://huggingface.co/spaces/yancan/CiteScan推送到 Spaces(HF 不允许普通 git 推送二进制文件,需用无图片分支
hf-main):- 重要:HF 上显示的是 已提交到 main 的代码。若本地有未提交的修改(如
main.py、src/等),需先提交到main,再更新并推送hf-main。 - 一键脚本:
./scripts/push_to_hf.sh(会提示先提交未提交的修改,再重建hf-main并推送)。 - 或手动:先
git add -A && git commit -m "说明",再运行脚本或按脚本内步骤重建hf-main并git push hf hf-main:main --force。
- 重要:HF 上显示的是 已提交到 main 的代码。若本地有未提交的修改(如
推送完成后,在 Space 页面 等待构建结束即可访问 Gradio 应用。
注意:README 顶部的 YAML 配置(title、sdk、app_file 等)为 Spaces 必需,请勿删除。
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Explore projetos relacionados
Carregando…