OncoLlama assets
Project description
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).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file londonaicentre_oncollama_assets-1.0.5.tar.gz.
File metadata
- Download URL: londonaicentre_oncollama_assets-1.0.5.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b7cd350277015d30a6f7c8091c778d8248de534fc91b8cbf2906a672d2f3ed4
|
|
| MD5 |
d9147654ae056377d2f00316c3dcef09
|
|
| BLAKE2b-256 |
5af10661a4114349cd42392b5794be0a3ab786303e3dc7112164ff17d8ab34a7
|
File details
Details for the file londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl.
File metadata
- Download URL: londonaicentre_oncollama_assets-1.0.5-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d680987066856fcbe5aa8858ece742afdc2524f0b93968671eb186a71e644c0f
|
|
| MD5 |
da0411470df2c06cca2a772a349fb5fa
|
|
| BLAKE2b-256 |
66131565c0a43cc66b1f51d1675ecfb192eed39dd815616dafc0ef40d42ad4f1
|