LLMDB.Sources.Llmfit (LLM DB v2026.4.7)

Copy Markdown View Source

Sidecar source for llmfit open-weight metadata.

This module is intentionally not a primary catalog source. It is used to:

  • pull/1 fetch and cache llmfit's hf_models.json
  • load_index/1 build a lookup index by Hugging Face repo ID for enrichment

load/1 returns an empty canonical map so this source can participate in generic source workflows without injecting non-canonical providers/models.

Summary

Functions

Build an enrichment index keyed by Hugging Face repo ID (org/model).

Load raw llmfit metadata list from cache.

Functions

load_index(opts \\ %{})

@spec load_index(map()) :: {:ok, %{optional(String.t()) => map()}} | {:error, term()}

Build an enrichment index keyed by Hugging Face repo ID (org/model).

load_raw(opts \\ %{})

@spec load_raw(map()) :: {:ok, [map()]} | {:error, term()}

Load raw llmfit metadata list from cache.