Skip to main content

hush-providers

LLM, embedding, and reranking provider integrations for Hush workflows.

PyPI Python

Installation

pip install hush-providers

Quick Start

LLM (chain = prompt + LLM combined)

from hush.core import Hush, GraphOp, START, END, PARENT
from hush.providers import chain

async def main():
    with GraphOp(name="chat") as graph:
        chat = chain(
            resource="gpt-4o",
            template={"system": "You are a helpful assistant.", "user": "{question}"},
            question=PARENT["question"],
        )
        START >> chat >> END

    result = await Hush(graph).run(inputs={"question": "What is Python?"})
    print(result["content"])

Embedding

from hush.providers import EmbeddingOp

embed = EmbeddingOp.of(resource="bge-m3", texts=PARENT["documents"])

Reranking

from hush.providers import RerankOp

rerank = RerankOp.of(resource="bge-reranker", query=PARENT["query"], documents=PARENT["docs"])

Supported Providers

Type Providers
LLM OpenAI, Azure OpenAI, Google Gemini, vLLM
Embedding OpenAI/vLLM, TEI, HuggingFace, ONNX
Reranking vLLM, Pinecone, Cohere, HuggingFace, ONNX

Configuration

Providers are configured via YAML resource files:

# resources.yaml
llm:
  gpt-4o:
    type: openai
    model: gpt-4o
    api_key: ${OPENAI_API_KEY}

embeddings:
  bge-m3:
    type: onnx
    model_path: /models/bge-m3

Feature Flags

Install only the providers you need:

pip install "hush-providers[openai]"       # OpenAI + Azure
pip install "hush-providers[gemini]"       # Google Gemini
pip install "hush-providers[onnx]"         # ONNX Runtime
pip install "hush-providers[all-light]"    # All without PyTorch
pip install "hush-providers[all]"          # Everything

Rust Backend

All providers have native Rust implementations via hush-providers (crate) — direct HTTP calls without Python overhead.

Package Description
hush-icore Core workflow engine (required)
hush-telemetry Tracing with token/cost tracking
hush-serve Serve workflows as HTTP APIs

License

Apache 2.0

Metadata

Release files for hush-providers 0.2.7

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

Source distribution (sdist)

Source distribution for hush-providers 0.2.7
File Size Uploaded
hush_providers-0.2.7.tar.gz 67.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hush-providers 0.2.7
File Interpreter ABI Platform
hush_providers-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 170.6 kB

Release files / hush_providers-0.2.7.tar.gz

Download URL hush_providers-0.2.7.tar.gz
Size 67.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b602134a7351fc0380b6ba4afe626e8866697936fec59d626e2d4d4a39d61b8a
BLAKE2b-256 checksum
How to use checksums
1add11fe0332313bd8600af36b62189a42abadc6f194440936b4bd580ee50c72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / hush_providers-0.2.7-py3-none-any.whl

Download URL hush_providers-0.2.7-py3-none-any.whl
Size 103.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fa6b9bdf512928e321e17448aaffc27648cf740a681fcc367ae9a37bba61f4c
BLAKE2b-256 checksum
How to use checksums
7c676e90002ea3d30db20a0749a594d1af5f92a17a6612693d77620a56af3e32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.2.7 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

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