mix llm_db.build (LLM DB v2026.2.7)

Copy Markdown View Source

Builds snapshot.json from configured sources using the Engine ETL pipeline.

Runs the complete ETL pipeline (Ingest → Normalize → Validate → Merge → Enrich → Filter → Index) on configured sources to generate a fresh snapshot.json file.

Usage

mix llm_db.build
mix llm_db.build --check

Options

  • --check — Instead of writing files, verify that the generated artifacts match what is already on disk. Exits with a non-zero status if any files are missing, unexpected, or out of date. Useful in CI to ensure contributors ran mix llm_db.build after editing TOML sources.

Configuration

Configure sources in your application config:

config :llm_db,
  sources: [
    {LLMDB.Sources.Packaged, %{}},
    {LLMDB.Sources.ModelsDev, %{url: "https://models.dev/api.json"}},
    {LLMDB.Sources.JSONFile, %{paths: ["priv/custom.json"]}}
  ],
  allow: :all,
  deny: %{},
  prefer: [:openai, :anthropic]