Check BibTeX references for hallucinations before submitting a paper to arXiv
Project description
check-hallucinations
A command-line tool to detect hallucinated references in BibTeX files before submitting a paper to arXiv.
It checks each reference against Semantic Scholar and flags any title that cannot be found.
Installation
pip install check-hallucinations
Usage
check-hallucinations references.bib
Entries that cannot be found on Semantic Scholar are printed in red as potential hallucinations.
How it works
For each entry in the BibTeX file, the tool queries Semantic Scholar by title. If no match is found, the entry is flagged as a likely hallucination (a reference invented by an LLM or a typo). misc entries without an eprint field are skipped unless they lack a howpublished URL.
API key
By default the tool uses the public Semantic Scholar API (rate-limited). For higher throughput, set the SEMANTICSCHOLAR_API_KEY environment variable:
export SEMANTICSCHOLAR_API_KEY=your-key-here
check-hallucinations references.bib
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file check_hallucinations-0.2.0-py3-none-any.whl.
File metadata
- Download URL: check_hallucinations-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff5c253b142e0a70fe2b06766ffcff563b0a4454910cbce5b9117b80fa2404dd
|
|
| MD5 |
3a739f157c5d14f508285fea785cb7ed
|
|
| BLAKE2b-256 |
a886bd46a54f4a376540b538219bd44b519827687570a4484ea7f02dd161137f
|
Provenance
The following attestation bundles were made for check_hallucinations-0.2.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on ASSERT-KTH/check-hallucinations
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
check_hallucinations-0.2.0-py3-none-any.whl -
Subject digest:
ff5c253b142e0a70fe2b06766ffcff563b0a4454910cbce5b9117b80fa2404dd - Sigstore transparency entry: 1573012102
- Sigstore integration time:
-
Permalink:
ASSERT-KTH/check-hallucinations@db7d5d9a5bb7ca77f69669557138ef5bcaa5eada -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ASSERT-KTH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@db7d5d9a5bb7ca77f69669557138ef5bcaa5eada -
Trigger Event:
push
-
Statement type: