papertrail/backend/engines/Valsci/DISTRIBUTION_README.md
caelum0x 174222bcaa feat: Builder-Track named-user tools, bio + evidence-intelligence platform, Apache-2.0
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).
2026-07-10 16:23:13 +03:00

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 image
  • docker-compose.yml - Configuration for running the application
  • Dockerfile - 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 configuration
  • DOCKER_README.md - Detailed documentation about the Docker setup
  • SHA256SUMS / 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

Quick Setup Guide

  1. Make sure you have extracted the distribution tarball to a new directory
   tar -xzvf valsci-docker-dist.tar.gz
  1. Load the Docker image:

    gunzip -c valsci-image.tar.gz | docker load
    

    This might take a few minutes depending on your system.

  2. 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
    
  3. Configure required settings: At minimum, you need to set:

    • FLASK_SECRET_KEY - Any random string for security
    • USER_EMAIL - Your email address
    • SEMANTIC_SCHOLAR_API_KEY - Your Semantic Scholar API key
    • LLM_PROVIDER - Usually "openai"
    • LLM_API_KEY - Your OpenAI API key
  4. Start the containers:

    docker-compose up -d
    
  5. Check that everything is running:

    docker-compose ps
    

    You should see both services running.

  6. Access the application: Open http://localhost:3000 in your browser

  7. 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.