Skip to main content

Use Hugging Bay in LlamaIndex

Search model files from your existing app or agent. Start with the local source setup, then try the search example below.

Version 0.1.0. Source candidate, not published. Official Hugging Bay adapter. Default off. No account is needed for public catalog reads.

Install after package publication

After the founder publishes the packages:

python -m pip install llama-index-tools-hugging-bay==0.1.0
export HUGGING_BAY_INTEGRATIONS=1
python examples/discover.py

1. Set up this checkout

For this checkout, install packages/python-sdk, then packages/integrations/python-core, then this directory with python -m pip install -e <directory>.

2. Search for a model

import os
os.environ["HUGGING_BAY_INTEGRATIONS"] = "1"

from hugging_bay_integrations import BayClient
from llama_index_tools_hugging_bay import HuggingBayToolSpec

with BayClient() as client:
    tools = HuggingBayToolSpec(client).to_tool_list()
    print(tools[0].call(query="Qwen GGUF", limit=2))

Attach the returned tools to your existing framework agent.

API details, downloads and local runs

Read tools: search(query, limit=5), find_runnable(task, ram_gb=None, model=None), get_model(id). get_model returns the full REST artifact record, including its artifact wrapper when present; it is not MCP's compact model projection.

Only with HUGGING_BAY_INTEGRATIONS_LOCAL=1 are download_verified and run_local exposed. Download arguments are id, exact path, local destination, sha256, size_bytes. Copy hash and size from the current GET /api/v1/artifacts/{id}/download-plan. It streams through the existing Hugging Bay Python SDK, checks hash and size, attests completion, and publishes the file. It does not establish runtime support. A mismatched or unavailable plan is refused.

For local execution, pass local_mcp=LocalMcp() to BayClient (LocalMcp is imported from hugging_bay_integrations.local). Install hugging-bay-mcp and the sibling hbay runtime separately. Set HBAY_ENABLE_RUN=1 on the host. The MCP child receives HUGGING_BAY_MCP_ENABLE_RUN_LOCAL=1. The session stays open until client.close(); closing it stops its owned runtime. A missing run_local fails explicitly. No catalog shell command is executed. Do not create a short-lived client if you need to keep using the returned local API endpoint.

Queries go to Hugging Bay; model execution stays on your machine.

Limits and maintainer checks

Treat model cards as untrusted data. Inspect license labels and exact-file run proof. Missing or old proof remains unknown. These tools do not train models, post publicly, or upload prompts or datasets. Agent hosts own authorization for file writes and execution. SDK tracing in the host may have separate settings.

Tests (gate machine load first):

python -m pytest tests --import-mode=importlib -q
HBAY_LIVE_TESTS=1 python -m pytest tests --import-mode=importlib -q

Live checks issue public GET requests only. They never download weights or run a model.

See publish steps. MIT licensed.

HuggingBayModelReader(client).load_data("Qwen GGUF", limit=2) returns LlamaIndex documents with artifact IDs and catalog metadata. It reads public search results and never fetches model weights. See examples/discover.py for use alongside the existing tool spec.

Metadata

Release files for llama-index-tools-hugging-bay 0.1.0

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

Source distribution (sdist)

Source distribution for llama-index-tools-hugging-bay 0.1.0
File Size Uploaded Provenance Actions
llama_index_tools_hugging_bay-0.1.0.tar.gz 6.0 kB Without provenance Details for llama_index_tools_hugging_bay-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-hugging-bay 0.1.0
File Interpreter ABI Platform Actions
llama_index_tools_hugging_bay-0.1.0-py3-none-any.whl Python 3 none any Details for llama_index_tools_hugging_bay-0.1.0-py3-none-any.whl

Total release size: 11.0 kB

Release files / llama_index_tools_hugging_bay-0.1.0.tar.gz

Download URL llama_index_tools_hugging_bay-0.1.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
48be300d6ca33efa72732ea30900ae2af6faae83407f5a3d03a023e677349f1b
BLAKE2b-256 checksum
How to use checksums
3ae7bd1155c4ab0472eab3fd538a8ae01c616ffe98fdf5a9916797417617e638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release files / llama_index_tools_hugging_bay-0.1.0-py3-none-any.whl

Download URL llama_index_tools_hugging_bay-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59762f71d0335196a82ce035971b472bc553e6508b341c6df71e9d1c98f6906e
BLAKE2b-256 checksum
How to use checksums
474a568386f0e4ba8a1011651f3b0b5a8e99719850184af9041ce555890371fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Security for llama-index-tools-hugging-bay 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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