Give it the draft of an article (research or review) and your Zotero library. For every section of the draft it suggests which of your papers fit, which figures from them could illustrate it, and who to ask for permission to reuse a figure.
These are suggestions, not verdicts: nothing is removed, weaker matches are only listed lower.
Windows 10/11, 64-bit. Latest version:
| Installer | Size | What it includes |
|---|---|---|
| CiteFilter-Setup-full.exe | 597 MB | Everything, with the local model (SPECTER2) built in so it works offline. Recommended. |
| CiteFilter-Setup-lite.exe | 83 MB | Without the local model: matches by words only. |
Windows shows a SmartScreen warning because the installer is not code-signed: click More info, then Run anyway. All versions are on the Releases page.
See it working first: the results page has an example report and the accuracy benchmark.
Set up: add your draft, pick where your papers come from (Zotero, a CSV export, a PDF folder, My Library or an internet search) and choose the options.
Results: how many papers and figures fit each section of the draft. The full report opens in your browser, and the matches can be exported to Zotero, Mendeley, EndNote or Overleaf.
My Library: keep papers, PDFs and links on your own computer, grouped into projects, and run CiteFilter on one project.
The screenshots come from the example run: 15 openly licensed arXiv papers on microwave absorbers, against a short example draft.
- Papers per section with a match %, after reading each paper's abstract and introduction.
- Cited or not: marks papers your draft already cites, and those that fit a section but are not cited yet.
- Figures: finds figure captions in the PDFs, suggests the best ones per section, and crops them out of the page.
- Permission help: corresponding author and licence from OpenAlex, email address from the PDF, and a draft permission email. It never sends anything.
- Zotero: reads a running Zotero 7 directly, or a CSV export.
- Optional local model: SPECTER2 matches by meaning, on your own computer.
- Optional AI: any OpenAI-style endpoint (a cloud provider or a local Ollama) can rate papers and personalise the emails.
- Open the Releases page and download
CiteFilter-Setup-lite.exe(small) orCiteFilter-Setup-full.exe(much larger, adds the optional local model). - Run it. Windows shows a SmartScreen warning because the installer is not code-signed: click More info, then Run anyway.
- Start CiteFilter from the Start menu.
If no release is listed yet, build one: see Build the installer yourself.
Needs Windows 10/11 (64-bit) and Python 3.10+ from python.org with Add python.exe to PATH ticked.
- Download this repository (Code > Download ZIP) and unzip it, for example to
C:\CiteFilter. - Double-click
setup_windows.bat(about 10 minutes, downloads the libraries and the Poppler PDF tools;setup_windows.bat liteskips the local model libraries). It ends with "CiteFilter is ready". - Double-click
CiteFilter.bat.
Needs Python 3.10+ and Poppler (brew install poppler or apt install poppler-utils).
git clone https://github.com/harshit2000-10/CiteFilter.git
cd CiteFilter
pip install -r requirements.txt
python3 citefilter_ui.py- Your draft: a Word file (
.docx)..md,.texand.txtalso work. Give the sections real headings (Heading 1/2 in Word); suggestions are made per section. If the draft has a reference list, CiteFilter uses it to tell which papers you already cite. - Your papers: a Zotero library or, without Zotero, a folder of PDF files. One of
- leave Zotero 7 running and use From Zotero (turn it on once: Zotero > Settings > Advanced > tick Allow other applications on this computer to communicate with Zotero), or
- export a CSV: in Zotero select the papers (or a collection), right-click > Export… > format CSV. Keep the exported file where it is; PDFs are found through its File Attachments column.
- no Zotero: put the papers' PDF files in one folder (subfolders are read too) and use PDF folder. Title, authors, year, DOI and abstract are read from each PDF, so a paper whose PDF records nothing about itself may show a rough title or no authors. Scanned PDFs without a text layer are judged on the file name only. The list it builds and the report are saved in Documents/CiteFilter.
Papers with a PDF attached are judged on abstract and introduction, and can give figures and emails. Papers without one are judged on title and abstract only.
The window has three screens, shown as steps at the top right: Set up, Running, Results.
- Under Your draft, drop the file on the dashed box or click it to browse.
- Under Your papers, pick where they come from, From Zotero (the whole library or one collection), CSV export (a Zotero export) or PDF folder (a folder of PDF files), then click the dashed box.
- Set Figures suggested per section (default 3).
- Optional: tick Match papers by meaning too to add the local SPECTER2 model. The first use downloads about 0.9 GB, later runs reuse it. Slower, usually better at synonyms. Not available in the lite edition.
- Press Run CiteFilter (it lights up once the draft and the papers are in). The Running screen shows the real steps, how many papers were read, matches and figures so far, and the tool's own log; a few minutes for a library of a few hundred papers. Cancel stops the run. While you wait you can switch to Play Citation Catch, a small game with made-up papers; the run carries on and tells you when it is done.
- On the Results screen press Open report (the web page) or Open table (the same data as a spreadsheet). New run goes back to Set up with your files still chosen.
The window is a web page shown by Microsoft Edge (or Chrome) as a window of its own, served by CiteFilter
itself on this computer only (address 127.0.0.1); it uses a throwaway browser profile, so your browser's
own data, extensions and sign-ins are not involved. If neither browser is installed the page opens in your
default browser. CiteFilter.exe --classic (or python citefilter_ui.py --classic) opens the older, plainer
window instead.
For each section of your draft, the report lists:
-
Suggested papers, best first, each with a match %, a short reason and a tag:
Tag Meaning strong match 60% or more possible match 40% to 60% weak match below 40% check below 40% but the paper has no abstract, so check it by hand The % is on a fixed scale, not relative to your library: if nothing in the library fits the draft, no paper reaches 40% and the report says "No paper in this library is a good match" instead of suggesting the least bad one. A paper with only a title is rated by meaning when the local model is on, and goes to "check" otherwise. It is similarity, not a probability that the paper is relevant.
-
Cited / not cited yet: whether your draft already cites the paper. A strong match that is not cited yet is worth a look.
-
Suggested figures: only from papers that suit that section, and only when the caption itself is close to the section's text; sections such as the abstract get none. Each is cropped from the PDF with the caption, the paper's citation, the corresponding author, the email address found and the licence if OpenAlex knows it, and a draft permission email. Click a figure to open its PDF at that page.
After the sections, every paper is listed again under strong, possible and weak match.
papers.csv has one row per paper: rank, match, match %, best section, cited in draft, title, year, DOI,
corresponding author, email and how it was found, licence.
The draft emails contain placeholders: [YOUR NAME], [YOUR AFFILIATION], [ARTICLE TITLE],
[TARGET JOURNAL], [YOUR EMAIL]. Fill them in and send the email yourself; CiteFilter sends nothing.
Check the address and the licence first. For most journal papers the publisher, not the author, grants
reuse permission, and email addresses are best guesses.
| What | Where |
|---|---|
| Report for a CSV you browsed to | a …_report folder next to that CSV |
| Library loaded with From Zotero or PDF folder and its report | Documents\CiteFilter (Windows), ~/CiteFilter (macOS) |
| Saved AI settings | %APPDATA%\CiteFilter\llm.env (Windows), ~/Library/Application Support/CiteFilter/llm.env (macOS) |
My Library (library.db, its PDFs folder, the local model's cache) |
Documents\CiteFilter\Library |
| Library backups | Documents\CiteFilter\Backups |
| Report of a run with the internet search or added papers | Documents\CiteFilter\Runs |
| Optional search keys | %APPDATA%\CiteFilter\search.env |
Every report folder also holds references.bib and references.ris: the strong and possible matches, ready to
import into Zotero, Mendeley, EndNote, JabRef or Overleaf (the Results screen has buttons for them).
To find papers you do not have yet, pick Search online as the paper source, or keep your own library and turn on Search the internet too. CiteFilter makes up to 8 short search phrases from your draft's sections (the AI writes them when AI assist is on), searches OpenAlex, Semantic Scholar and arXiv, merges the results, keeps the 120 closest to the draft and rates them with your own papers. In the report they are tagged found online, and each title links to the paper. Only the search phrases are sent, never the draft.
Without keys, OpenAlex allows about 100 searches a day for everyone on your network (one run makes up to 8) and Semantic Scholar often refuses searches; the search goes on with whichever services answer. Free keys, entered under Search keys, lift both limits: OpenAlex, Semantic Scholar.
My Library (the button at the top right) is your own collection of papers, kept on this computer in
Documents\CiteFilter\Library, not inside the program, so it stays when CiteFilter is updated or uninstalled.
- Add papers: DOIs, arXiv links, PubMed and Nature links, other publisher pages, direct PDF links, or PDF files (pick them or drop them on the box). CiteFilter looks each paper up on OpenAlex or arXiv and downloads its PDF when a free, legal copy exists. Some publishers do not let programs read their pages or send their PDFs: paste the DOI instead, or download the PDF yourself and add the file.
- Import: a BibTeX, RIS or Zotero CSV file (from Zotero, Mendeley, EndNote, JabRef, Google Scholar), or a whole folder of PDFs. A paper already in the library is recognised by DOI or title and filled in, not doubled.
- Projects: one per article, say; a paper can be in several. Tags, notes and a read mark for each paper; search, filter and sort; open the PDF or the paper's page; attach a PDF later.
- Copy citation (APA) or Copy BibTeX for one paper; Export BibTeX for a selection.
- Back up: one zip in
Documents\CiteFilter\Backupswith the list and every PDF it uses. - Runs: pick My Library as the paper source (the whole library or one project), or keep another source and tick Also rate … from My Library.
Removing a paper takes it off the list only; its PDF stays on your computer. Papers added before My Library
existed (the old Added papers folder) are moved in automatically; their PDFs stay where they are.
The local model's results are kept in Library\model_cache.db, so a paper is read by the model once: the
second run on the same papers skips that work and is several times faster.
tools/citation_benchmark.py checks how well the matching finds the papers real articles cite: 8 open-access
arXiv articles from 8 fields, each article's text (reference list removed) as the draft, the papers it cites
against twice as many same-topic papers it does not cite, all judged on title and abstract.
python tools/citation_benchmark.py build bench_data
python tools/citation_benchmark.py score bench_data
The full tables, per article and for figures, are on the results page.
Results (average precision, higher is better; random is about 0.33): word matching alone 0.610; words and
the SPECTER2 local model averaged 50/50 (before) 0.514; words 85% + SPECTER2 15% (now) 0.589, with the best
precision in the top 20. A cross-encoder reranker
(rerank.py; MiniLM-L6, mxbai-xsmall and bge-reranker-base tried) did not beat word matching (best 0.593),
nor did it place figures better (right section first for 53% of figures, against 79% by words), so it is not
shipped. To try one, put a cross-encoder in models\reranker; a Re-check the top matches switch appears.
Each suggested figure in the report now also shows the passage of your draft it fits, what its paper says about it ("Fig. 3 shows ..."), and whether it is free to reuse with credit or needs permission.
Works with the Settings button under AI assist. Test connection in that box asks the model for one
word and says in plain words what is wrong if it does not answer (key refused, model name not found, address
not reachable); after Save the same check runs by itself and its result stays on the Set up screen.
The model name must be the exact one the service lists, for example claude-opus-5-5, not "Claude 5.5".
The switch next to Settings turns AI assist on or off without forgetting the endpoint, model and key.
The local SPECTER2 model runs in every run while Match papers by meaning too is on (the default), AI or
not. With AI assist on, the AI's score decides the match and the report shows the local model's score
beside it (local_model_pct in papers.csv); if the AI gives no ratings, the local model's ratings are used.
The Results screen says who rated the papers.
In that box, enter any OpenAI-style endpoint, a model name and a key
(leave the key empty for a local Ollama), and tick Save to keep them. AI then rates papers more carefully,
picks figures and writes a personalised email for each author. Without it, everything above still works.
Setting names are in llm.env.example. Never share your llm.env: it holds your key.
python3 zotero_filter.py draft.docx library.csv
python3 zotero_filter.py draft.docx zotero # a running Zotero 7, whole library
python3 zotero_filter.py draft.docx zotero:"My review" # one Zotero collection
python3 zotero_filter.py draft.docx library.csv --figs 5 --semantic
python3 zotero_filter.py # built-in self-checkAI options: --llm-url, --llm-model, --llm-key, --llm-file.
For the local model also run pip install torch adapters.
| Problem | What to do |
|---|---|
| "Could not reach Zotero" | Open Zotero 7 and tick Allow other applications on this computer to communicate with Zotero |
| "Poppler not found" (source install) | Windows: run setup_windows.bat again. macOS/Linux: install Poppler (see above) |
| No figures or emails for a paper | It has no PDF attached in Zotero, or the PDF has no text layer (scans) |
| Everything lands in one section | The draft has no real headings; use Heading 1/2 styles in Word |
.doc file rejected |
Save it as .docx first |
| Setup stops on a download | Check the internet connection and run setup_windows.bat again |
| When | What is sent | Where |
|---|---|---|
| Always | DOIs of the suggested papers | OpenAlex |
| Internet search on | Up to 8 short search phrases made from the draft (not the draft itself) | OpenAlex, Semantic Scholar, arXiv |
| Adding a paper by link | The link or DOI you pasted, then the paper's free PDF link | OpenAlex, arXiv, the site you linked |
| Local model, first use only | A model download request | Hugging Face |
| AI mode, only if you set an endpoint | Excerpts of your draft, abstracts, starts of introductions, figure captions | The endpoint you chose |
Without AI mode, your draft text never leaves your computer; the internet search sends only short phrases made from it.
Early and lightly tested. A high match % is not proof of relevance and a low one is not proof of irrelevance.
- Developed on a Mac (Apple Silicon) with a small test library; 84 automated checks pass there.
- The Windows build is produced and self-tested on a clean Windows machine by GitHub Actions (see the Actions tab).
- The Zotero connection and AI mode have only been tested against stand-in servers, not yet against a real Zotero or a real model.
On Windows, after setup_windows.bat worked and CiteFilter.bat opens:
- Install Inno Setup (free).
- Double-click
build_windows.bat(build_windows.bat litefor the edition without the local model).
You get dist\CiteFilter\CiteFilter.exe (runs without installing) and dist\CiteFilter-Setup.exe.
Or let GitHub do it: Actions > Windows build > Run workflow; pushing a v* tag also attaches
the installers to a release.
Python, scikit-learn, python-docx, Tkinter, Poppler (run as a separate
program), OpenAlex, and optionally SPECTER2
through transformers and adapters.
MIT, see LICENSE. Software CiteFilter relies on keeps its own licence; see THIRD_PARTY_NOTICES.md. Poppler in particular is GPL and is run as a separate program.


