omop-llm
Shared chat/embedding backend contract for the OMOP stack, built on any-llm. One typed ModelBackend interface (sync and async methods, both real), a closed set of supported providers (local: ollama, llamacpp, vllm; cloud: openai, anthropic, gemini), and explicit capability declarations instead of provider-name guessing. Extended documentation can be found here.
from omop_llm import build_model_backend, Capabilities
backend = build_model_backend(
provider="ollama", model="llama3:8b", base_url="http://localhost:11434",
model_capabilities=Capabilities(), # plain chat only -- nothing else needed here
)
# async
response = await backend.async_complete([{"role": "user", "content": "Hello"}])
# sync
response = backend.complete([{"role": "user", "content": "Hello"}])
Or resolved from an oa-configurator stack config:
from oa_configurator import Resolver, load_stack_config
from omop_llm import build_model_backend_from_resolved
resolved = Resolver(load_stack_config()).resolve_model("embed-default")
backend = build_model_backend_from_resolved(resolved)
See docs/index.md for the full design (provider registry, capability model, structured extraction).
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 omop_llm-1.0.1.tar.gz.
File metadata
- Download URL: omop_llm-1.0.1.tar.gz
- Upload date:
- Size: 183.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cebdb7df66759f516198477c97e882534d8700787b0bae001b43a8f8071be964
|
|
| MD5 |
c2f008ace40e8e1623a97c3232b72df6
|
|
| BLAKE2b-256 |
f2aedec515aac6273c562b2edd2bea0b996d40a65092213907e2eeb09098fc46
|
Provenance
The following attestation bundles were made for omop_llm-1.0.1.tar.gz:
Publisher:
publish.yml on AustralianCancerDataNetwork/omop-llm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omop_llm-1.0.1.tar.gz -
Subject digest:
cebdb7df66759f516198477c97e882534d8700787b0bae001b43a8f8071be964 - Sigstore transparency entry: 2436229754
- Sigstore integration time:
-
Permalink:
AustralianCancerDataNetwork/omop-llm@425e529991a4f248d8d794c6e5967e261deab9ad -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/AustralianCancerDataNetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@425e529991a4f248d8d794c6e5967e261deab9ad -
Trigger Event:
push
-
Statement type:
File details
Details for the file omop_llm-1.0.1-py3-none-any.whl.
File metadata
- Download URL: omop_llm-1.0.1-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aecfa1578286c3fad8f61c33032bd63355f8079ee5915ad2941a87e87cd3796a
|
|
| MD5 |
6c44cb3e0c422b215dca3394cac28312
|
|
| BLAKE2b-256 |
1e14fc6782952879b08d02bd64c5b7fd1114465d826196681fd69a69e8207db0
|
Provenance
The following attestation bundles were made for omop_llm-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on AustralianCancerDataNetwork/omop-llm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
omop_llm-1.0.1-py3-none-any.whl -
Subject digest:
aecfa1578286c3fad8f61c33032bd63355f8079ee5915ad2941a87e87cd3796a - Sigstore transparency entry: 2436230827
- Sigstore integration time:
-
Permalink:
AustralianCancerDataNetwork/omop-llm@425e529991a4f248d8d794c6e5967e261deab9ad -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/AustralianCancerDataNetwork
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@425e529991a4f248d8d794c6e5967e261deab9ad -
Trigger Event:
push
-
Statement type: