Builds PaperTrail from the base skeleton into a full evidence-verification platform for the "Built with Claude: Life Sciences" hackathon (Builder Track). New named-user features (Build Beyond the Bench): - Lab Notebook Companion — rough bench notes -> structured, searchable, grounded experiment records (lib/labNotebook, /console/lab-notebook, migration 0059) - Clinical Trial Matcher — de-identified patient notes -> ranked eligible ClinicalTrials.gov trials with per-criterion inclusion/exclusion reasoning (lib/trialMatcher, /console/trial-matcher, migrations 0060) Platform: - Deterministic verification moat (biostats recompute, exact-span grounding) - 11 biomedical evidence engines (FAERS, GWAS, Open Targets, ChEMBL, ClinVar, PharmGKB, PubTator, DDI, repurposing, biomarker, unified verifier) - Evidence Intelligence (KG, dossier, provenance/export, RWE) + enterprise governance (RBAC, /api/v1 gateway, metering, audit chain, retention) - 17 OSS projects assimilated into native TypeScript on our stack (backend/engines retained + credited in NOTICE) - Multi-format upload (PDF/DOCX/XLSX/CSV/MD/TXT), logo, marketing site - Next.js 16 upgrade, benchmark harness (honest smoke-test caveat) Licensing: Apache-2.0 (LICENSE + NOTICE).
3.5 KiB
Valsci Docker Distribution
This package contains a pre-built Docker image for running Valsci without needing to build from source.
Contents
valsci-image.tar.gz- The pre-built Docker imagedocker-compose.yml- Configuration for running the applicationDockerfile- Image build recipe (for reference / rebuilds)requirements.lock- Hash-pinned Python dependencies (installed with--require-hashes)semantic_scholar/manifests/- Curated corpus manifests (mounted read-only)env_vars.json.example- Template for configurationDOCKER_README.md- Detailed documentation about the Docker setupSHA256SUMS/release_manifest.json- Integrity metadata for the artifacts above
Verifying integrity
After extracting, confirm the artifacts were not tampered with or truncated:
# With the standard coreutils tool:
sha256sum -c SHA256SUMS
# Or, if you have the Valsci source checked out:
python -m scripts.release_integrity verify --dist .
Both checks must pass before loading the image. A mismatch means the file differs from what was published — do not load it.
Prerequisites
- Docker
- Docker Compose
- At least 8GB of RAM and 20GB of free disk space
- A Semantic Scholar API key (get one at https://www.semanticscholar.org/product/api)
Quick Setup Guide
- Make sure you have extracted the distribution tarball to a new directory
tar -xzvf valsci-docker-dist.tar.gz
-
Load the Docker image:
gunzip -c valsci-image.tar.gz | docker loadThis might take a few minutes depending on your system.
-
Create your configuration:
# Create the config directory mkdir -p app/config # Copy the example config cp env_vars.json.example app/config/env_vars.json # Edit the config file with your API keys and settings nano app/config/env_vars.json # or use any text editor -
Configure required settings: At minimum, you need to set:
FLASK_SECRET_KEY- Any random string for securityUSER_EMAIL- Your email addressSEMANTIC_SCHOLAR_API_KEY- Your Semantic Scholar API keyLLM_PROVIDER- Usually "openai"LLM_API_KEY- Your OpenAI API key
-
Start the containers:
docker-compose up -d -
Check that everything is running:
docker-compose psYou should see both services running.
-
Access the application: Open http://localhost:3000 in your browser
-
Download required datasets:
# For the curated local mini corpus. docker-compose exec web python -m semantic_scholar.utils.downloader --mini # Or for full datasets (requires ~1.6TB of disk space) # docker-compose exec web python -m semantic_scholar.utils.downloader
Management Commands
-
View logs:
docker-compose logs -f -
Restart services:
docker-compose restart -
Stop services:
docker-compose down
Troubleshooting
- Can't access the web interface: Check if the container is running with
docker-compose ps - Processor not working: Check logs with
docker-compose logs processor - Dataset download errors: Check if you have enough disk space
For Advanced Users
If you want to modify the code or build from source, please refer to the main repository. This package contains only the pre-built image for ease of use.