hush-providers
LLM, embedding, and reranking provider integrations for Hush workflows.
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.
Related Packages
| 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hush_providers-0.2.7.tar.gz | 67.5 kB | Without provenance | Details for hush_providers-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hush_providers-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for hush_providers-0.2.7-py3-none-any.whl |
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
|
Security for hush-providers 0.2.7
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.