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-tuningsystemprompt_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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| londonaicentre_oncollama_assets-1.0.5.tar.gz | 25.2 kB | Without provenance | Details for londonaicentre_oncollama_assets-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl |
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}
|
Security for londonaicentre-oncollama-assets 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.