hf_build_index
Fetch AI models from HuggingFace or Ollama and index them into a semantic network. Extracts metadata, anchor links, and embeddings, adding to the network with each call.
Instructions
Fetch models and add them to the semantic network.
Runs the full extraction pipeline: fetches models, extracts bank positions,
anchor links, and metadata, then stores everything in the network database.
This is additive — multiple calls enrich the same network.
Args:
category: Category label for this batch (e.g. "text-generation", "code")
task: HuggingFace task filter to scope models. If None, uses category.
source: Source to index from — 'huggingface' (default), 'ollama', or 'all'
limit: Max models to fetch (default 2000)
min_likes: Minimum likes threshold (default 5, only for huggingface)
force: Currently unused; network is always additive
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| force | No | ||
| limit | No | ||
| source | No | huggingface | |
| category | Yes | ||
| min_likes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |