Skip to main content

MedDiscover

MedDiscover is an AI-powered tool designed to assist biomedical researchers using RAG-LLM models fine-tuned on PubMed literature.

CLI evaluation (headless)

Install the package (or use it in editable mode), set your OPENAI_API_KEY, and run the built-in evaluator:

pip install .
export OPENAI_API_KEY=...
# optional: ALLOW_MEDCPT_CPU=1 to force MedCPT on CPU

meddiscover-eval \
  --pdfs med_discover_ai/eval_samples/sample_pdfs/fmed-11-1345659.pdf med_discover_ai/eval_samples/sample_pdfs/s10549-023-07033-8.pdf \
  --qa_csv med_discover_ai/eval_samples/sample_qa.csv \
  --embedding_model "MedCPT (GPU Recommended)" \
  --llm_models gpt-4.1-mini \
  --k 3 \
  --max_tokens 64 \
  --out_dir ./eval_outputs_demo

# Evaluate both decoders in one run (example)
meddiscover-eval \
  --pdfs med_discover_ai/eval_samples/sample_pdfs/fmed-11-1345659.pdf med_discover_ai/eval_samples/sample_pdfs/s10549-023-07033-8.pdf \
  --qa_csv med_discover_ai/eval_samples/sample_qa.csv \
  --embedding_model "MedCPT (GPU Recommended)" \
  --llm_models gpt-4.1-mini,gpt-4.1-nano \
  --k 3 --max_tokens 64 --out_dir ./eval_outputs_all
  • For Ada-based retrieval, switch --embedding_model to OpenAI Ada-002 (CPU/Cloud).
  • RAGAS metrics are optional; if dependencies are missing or the QA CSV lacks a reference column, they fall back to None.
  • Re-ranking stays disabled on CPU; enable --rerank only when a GPU and cross-encoder are available.
  • Ollama models are available in both the UI and CLI (prefix with ollama:), e.g. --llm_models ollama:gemma3:4b.

Metadata

Release files for med-discover-ai 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for med-discover-ai 1.0.11
File Size Uploaded
med_discover_ai-1.0.11.tar.gz 549.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for med-discover-ai 1.0.11
File Interpreter ABI Platform
med_discover_ai-1.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / med_discover_ai-1.0.11.tar.gz

Download URL med_discover_ai-1.0.11.tar.gz
Size 549.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b58c5537459708fd6f026821ee7f7f59cba0fe8c73096bafed2a07fe3ebdccf4
BLAKE2b-256 checksum
How to use checksums
ad5cc98bae00403ac6a32ec96c53b14f6c0382e59e8a291b553fee93ac413511
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / med_discover_ai-1.0.11-py3-none-any.whl

Download URL med_discover_ai-1.0.11-py3-none-any.whl
Size 555.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04e7b864ac33d399c1f4d5efa6114d2695258767e9253072fb90e62b0217edc1
BLAKE2b-256 checksum
How to use checksums
3657384679f335f0a7bebde6ed74888444f5998af1243a73093538cc5b12cfe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.11 This release

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page