Skip to main content

Genomic report extraction schema for MESA

Project description

Genoschema

Schema package for genomic biomarker extraction from NHS genomic laboratory hub reports.

Structure

📁 genoschema
├── examples/            # Training examples showing document input and structured output
├── schema.py            # Pydantic model for specifying expected output structure
├── prompt_builder.py    # Prompt builder for data generation and inference
├── prompt_datagen.txt   # Prompt template with example (for training data generation)
├── prompt_main.txt      # Prompt template without example (for inference/deployment)
└── py.typed             # Type checking marker

Usage

from genoschema.prompt_builder import PromptBuilder

# Initialize builder
builder = PromptBuilder()

# Build data generation prompt (with example)
datagen_prompt = builder.build_datagen_prompt()

# Build main/inference prompt (without example)
main_prompt = builder.build_main_prompt()

License

This project uses a proprietary license issued by Guy's and St Thomas' NHS Foundation Trust (see LICENSE.md).

The contents of this repository are designed for NHS organisations to use on private data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

londonaicentre_genoschema-2.0.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

londonaicentre_genoschema-2.0.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file londonaicentre_genoschema-2.0.1.tar.gz.

File metadata

  • Download URL: londonaicentre_genoschema-2.0.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for londonaicentre_genoschema-2.0.1.tar.gz
Algorithm Hash digest
SHA256 ded5840a6ee98957671820cb4449e4b133e49c3b89b7fa18b160281939e2a801
MD5 6310e9d10ff13e4da39f69a8c331ca98
BLAKE2b-256 32abcc2422ab829830a07fd309a277e99a9dc769f0db54d9e599a11a89bbaab9

See more details on using hashes here.

File details

Details for the file londonaicentre_genoschema-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: londonaicentre_genoschema-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Amazon Linux","version":"2023","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for londonaicentre_genoschema-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0587401ab38c9d9a08cdf1ed7220d268118a94bf77a0ce12197249cdcd9f0060
MD5 c8bf7745adc79060d4152b2baaffd714
BLAKE2b-256 0d2b976e5cf5d888cb7b362844a128c341550205f3bab7ab7753471fece6362b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page