Skip to main content

OncoLlama Assets

Assets for OncoLlama: Generating high fidelity synthetic cancer letters, and fine-tuning LLMs for structured data extraction.

Features

This package primarily exposes the OncoLlama schema for runtime output validation. Use it to:

  • Validate LLM outputs against the expected OncoLlama structure
  • Generate JSON schemas for API contracts and documentation
  • Parse and validate extracted oncology data at runtime

Schema Access

Access the Pydantic model and its JSON schema:

from oncollama_assets.schema import OncoLlamaModel

# Get the JSON schema for validation
schema = OncoLlamaModel.model_json_schema()

# Parse and validate deserialised output
data = OncoLlamaModel.model_validate(llm_output)
# Parse and validate deserialised json string
data = OncoLlamaModel.model_validate_json(llm_output)

System Prompts

Load system prompts with the schema automatically injected:

from oncollama_assets.wrapper import OncoLlamaAssets

assets = OncoLlamaAssets()

# Load inference system prompt (default)
system_prompt = assets.load_system_prompt()

# Or specify a different prompt template
system_prompt = assets.load_system_prompt("systemprompt_finetune.md")

Available prompt templates:

  • systemprompt_infer.md - For inference (default)
  • systemprompt_finetune.md - For fine-tuning
  • systemprompt_datagen.md - For data generation

Wrapper Class (Internal Use)

The OncoLlamaAssets wrapper class also provides testing and internal release mechanisms.

Structure

📁 ONCOLLAMA_ASSETS
├── prompts/             # Prompt templates
├── schema.py            # Pydantic model for specifying expected OncoLlama output structure
├── wrapper.py           # Wrapper class for internal testing and release mechanisms

License

This project uses a proprietary license (see LICENSE).

Metadata

Release files for londonaicentre-oncollama-assets 1.0.5

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

Source distribution (sdist)

Source distribution for londonaicentre-oncollama-assets 1.0.5
File Size Uploaded
londonaicentre_oncollama_assets-1.0.5.tar.gz 25.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for londonaicentre-oncollama-assets 1.0.5
File Interpreter ABI Platform
londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 53.0 kB

Release files / londonaicentre_oncollama_assets-1.0.5.tar.gz

Download URL londonaicentre_oncollama_assets-1.0.5.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2b7cd350277015d30a6f7c8091c778d8248de534fc91b8cbf2906a672d2f3ed4
BLAKE2b-256 checksum
How to use checksums
5af10661a4114349cd42392b5794be0a3ab786303e3dc7112164ff17d8ab34a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}

Release files / londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl

Download URL londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl
Size 27.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d680987066856fcbe5aa8858ece742afdc2524f0b93968671eb186a71e644c0f
BLAKE2b-256 checksum
How to use checksums
66131565c0a43cc66b1f51d1675ecfb192eed39dd815616dafc0ef40d42ad4f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}

Release history Release notifications | RSS feed

This release

1.0.5 This release

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

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