mikehostetler

mikehostetler

LLM Db - a LLM Model Metadata Database as an Elixir Package

LLM DB - LLM Model Metadata Package

This package was extracted out of the ReqLLM project.

LLM DB is a model metadata catalog with fast, capability-aware lookups. Use simple "provider:model" or "model@provider" specs, get validated Provider/Model structs, and select models by capabilities. Ships with a packaged snapshot; no network required by default.

  • Primary interface: model_spec — a string like "openai:gpt-4o-mini" or "gpt-4o-mini@openai" (filename-safe)
  • Fast O(1) reads via :persistent_term
  • Minimal dependencies

Why?

When building ReqLLM, we implemented a model metadata system by pulling from https://models.dev. This worked well initially, but became challenging as we discovered various issues with LLM APIs. We submitted many PR’s upstream to models.dev, but they built their database for their purposes and it became obvious that our needs were diverging.

This package was extracted because it will have automated releases weekly to capture the latest model releases as quickly as possible.

It also standardizes the “model spec” - a unique string that can be used to address a specific model + provider combo. We support various spec formats.

For consumers, this package also supports filtering, local model definitions and a really nice allow/deny system so even when we have 1200 models in our database, but your app only wants to support 5, you can easily configure this.

Hex Release: llm_db | Hex
Github:

https://github.com/agentjido/llm_db

This package is part of the Agent Jido ecosystem.

Most Liked

BartOtten

BartOtten

Love the extraction as this makes it easier for other projects to take advantage of the normalization and frequent pre compiled updates.

My wife begs to differ.

mikehostetler

mikehostetler

Appreciate it!

This is pure bikeshedding so I apologize in advance, but shouldn’t it be either LlmDb or LLMDB ? :slight_smile:

Guilty - which is your preference? Naming stuff is really hard …

garrison

garrison

Definitely all caps for me. But I think that’s your preference too, since you used LLM DB multiple times in your own post. The version you reach for without thinking is always the right one :slight_smile:

I will also note there’s a reasonably well-known KV store named “LMDB”. Probably not an issue, though.

Where Next?

Popular in Announcing Top

Crowdhailer
Experimenting with this code. OK.try do user <- fetch_user(1) cart <- fetch_cart(1) order = checkout(cart, user) save_orde...
New
anshuman23
Hello all, I have been working on my proposed project called Tensorflex as part of Google Summer of Code 2018.. Tensorflex can be used f...
New
mbuhot
Leverage Open Api 3.0 (Swagger) to document, test, validate and explore your Plug and Phoenix APIs. Generate and serve a JSON Open API ...
New
tmbb
I’ve been working on two packages (not on hex.pm yet) to build admin interfaces for phoenix apps: bureaucrat - which contains a bunch ...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44532 311
New
benlime
LiveMotion enables high performance animations declared on the server and run on the client. As a follow up to my previous thread A libr...
New
brainlid
LangChain is short for Language Chain. An LLM, or Large Language Model, is the “Language” part. This library makes it easier for Elixir a...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36654 110
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New

We're in Beta

About us Mission Statement