A set of Python modules for retrieving and analyzing scientific biology papers.
Every module can be run from the command line or through the bundled web app (GUI) — the two are alternatives that drive the same pipeline. See each module's "In the web app" note below, and The Web App (GUI alternative) for setup.
This project uses uv for dependency and environment management. If you don't have it installed:
curl -LsSf https://astral.sh/uv/install.sh | sh- Clone the repository.
- Install dependencies:
uv sync
Downloads recent biology-related papers from NCBI PubMed and saves them to a JSON file.
Update config.json with your NCBI credentials:
{
"NCBI_EMAIL": "[email protected]",
"NCBI_API_KEY": "your_api_key_here"
}Run the downloader to fetch papers from the last 7 days (default 1000; use --count for a different number):
uv run pubmed_downloader.py # default 1000 papers
uv run pubmed_downloader.py --count 200- Output: All retrieved papers (title, journal, abstract) are saved to
papers.json.
Upload PDFs or paste an existing summary and the app downloads matching recent papers from NCBI automatically (adjustable paper count in the upload form). The download runs over the same PubMedClient as the CLI.
Reads a directory of PDF papers and uses a local Ollama instance (proxying to cloud models) to summarize the common themes.
Update ollama_config.json with your model settings:
{
"ollama_url": "http://localhost:11434",
"model": "your-cloud-model-name",
"parameters": {
"temperature": 0.3,
"num_ctx": 32768
}
}Run the summarizer by providing the path to the directory containing your PDFs:
uv run pdf_summarizer.py --dir /path/to/your/pdfs- Output: A one-page summary of shared topics and common themes is saved to
summary.md.
Upload the PDFs in the GUI and the themes summary is synthesized for you — shown in the Synthesized Themes card (and saved to the session directory as summary.md).
Evaluates downloaded papers against the themes summary and keeps the relevant ones.
Add your TypeSafe API key to config.json:
{
"NCBI_EMAIL": "[email protected]",
"NCBI_API_KEY": "your_api_key_here",
"TYPESAFE_API_KEY": "your_typesafe_api_key_here"
}Run the filter after Modules 1 and 2 (it reads papers.json and summary.md from the repo root):
uv run relevance_filter.py- Output: Papers found relevant are saved to
relevant_papers.json.
An Ollama-based alternative that avoids the TypeSafe API:
uv run relevance_filter_LLM.pySame inputs and output; uses ollama_config.json instead of the TypeSafe key.
A second Ollama-based alternative uses the local Nimble decision model, a JEV-style classifier that runs entirely locally through Ollama (no TypeSafe API key required):
ollama pull nimble
uv run relevance_filter_nimble.pyThis uses the same papers.json and summary.md inputs and writes the same relevant_papers.json output. It reads ollama_config.json for the Ollama URL and sends requests to Ollama's TypeSafe-compatible /v1/systemone endpoint.
Filtering runs automatically after the NCBI download completes; results appear in the Relevant PubMed Papers card with their relevance scores, downloadable as JSON.
All three steps can also be driven from the browser. The app is published as a multi-architecture image (linux/amd64 + linux/arm64):
dnalinux/jevpapers
Create your config files in the repo root (they are mounted into the container at runtime; no secrets are baked into the image):
cp config.json.sample config.jsonThen fill config.json with your own credentials (NCBI email/API key and TYPESAFE_API_KEY). Ensure an Ollama instance is reachable — by default the app connects to http://host.docker.internal:11434 (Ollama running on the Docker host). Edit ollama_config.json for model settings, or set the OLLAMA_URL environment variable to point elsewhere.
git clone https://github.com/ToyokoLabs/PaperJev.git
cd PaperJevdocker compose up -d --build # build locally
# or pull the published image (skips the build):
docker compose pull && docker compose up -dThen open http://localhost:8000 in your browser.
- Logs:
docker compose logs -f app - Stop:
docker compose down(session artifacts on thebio_sessionsvolume are preserved) - Publish an updated image:
docker compose build && docker compose push - Rebuild the multi-arch image:
docker buildx build --platform linux/amd64,linux/arm64 -t dnalinux/jevpapers:latest --push .
Note: in-flight analysis sessions live in app memory and are lost when the container restarts.
- Toyoko Bio — https://toyoko.io/
- Tonina — https://github.com/DNALinux/tonina
- DNALinux — https://dnalinux.com/
This project is released under the GNU General Public License v3 — see the LICENSE file for the full text.