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 --checkOptions
--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 ranmix llm_db.buildafter 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]