Skip to main content

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).

Metadata

Release files for omop-llm 1.0.2

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

Source distribution (sdist)

Source distribution for omop-llm 1.0.2
File Size Uploaded
omop_llm-1.0.2.tar.gz 182.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for omop-llm 1.0.2
File Interpreter ABI Platform
omop_llm-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 208.0 kB

Release files / omop_llm-1.0.2.tar.gz

Download URL omop_llm-1.0.2.tar.gz
Size 182.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a80267b95b1f1ad76e41a2285030d68d0c13825216dc7363f6eb87647c83c599
BLAKE2b-256 checksum
How to use checksums
84922147d62967adb61e91a5474ca0278bb3905be394718aad9c4d6427ba0196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release files / omop_llm-1.0.2-py3-none-any.whl

Download URL omop_llm-1.0.2-py3-none-any.whl
Size 25.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7dbd72df14fccefcf1be09fbcea89b8870c944c91db3dd686bacdcb1bcb544cc
BLAKE2b-256 checksum
How to use checksums
a3b4fe6d24752cf7c472a0473f7f484660bc57a7779d29ae1669d387ae76b668
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

0.1.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