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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hush_providers-0.2.7.tar.gz
(67.5 kB
view details)
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 hush_providers-0.2.7.tar.gz.
File metadata
- Download URL: hush_providers-0.2.7.tar.gz
- Upload date:
- Size: 67.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b602134a7351fc0380b6ba4afe626e8866697936fec59d626e2d4d4a39d61b8a
|
|
| MD5 |
d79c23f113e1105bd26bc5be4a73f546
|
|
| BLAKE2b-256 |
1add11fe0332313bd8600af36b62189a42abadc6f194440936b4bd580ee50c72
|
File details
Details for the file hush_providers-0.2.7-py3-none-any.whl.
File metadata
- Download URL: hush_providers-0.2.7-py3-none-any.whl
- Upload date:
- Size: 103.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fa6b9bdf512928e321e17448aaffc27648cf740a681fcc367ae9a37bba61f4c
|
|
| MD5 |
c4a57d227ddeb1b1fbbd24f520f695fb
|
|
| BLAKE2b-256 |
7c676e90002ea3d30db20a0749a594d1af5f92a17a6612693d77620a56af3e32
|