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:

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

ityonemo
Currently just starting out on a new mini-project - getting zig NIFs to run in elixir. https://github.com/ityonemo/zigler The idea here...
New
kzemek
I’ve recently released v0.2.0 of my Python interop library, Snex. This version rolls up all work-in-progress improvements that have been...
New
rbino
Hey folks! I’m happy to introduce TigerBeetlex, an Elixir client for TigerBeetle, the financial transactions database. I’ve been working...
New
murrgelb
Efx is a library to define and test side effects declaratively. It is basically a very focused mocking framework, reducing implementation...
New
fhunleth
Elixir Circuits is a set of libraries for interacting with hardware. We previously announced Circuits.UART, and now we’re ready to announ...
New
corka149
A JSON patch is a way to define a sequence of manipulating operations on a JavaScript object. The IETF published the RFC 6902 - found he...
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
mudspot
Hi folks, I’d like to announce the release of Prometheus Agents, a set of subagents for Claude Code that cater to the Elixir Phoenix pro...
New
volcov
Hello, How is everyone? I hope you’re well =) I worked on a project with some legacy code that existed before Oban’s arrival. This leg...
New
waseigo
I saw this LinkedIn post: *Can your programming language do this? This is a macro in Clojure called `dotrace`. When you surround a pie...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3268 119930 1237
New
yurko
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
peerreynders
Manning 2016 Halloween weekend sale via Deal of the Day Friday, October 28 - Half off all MEAPs - code WM102816LT Saturday, October 29 ...
326 29600 154
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 35421 110
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New

We're in Beta

About us Mission Statement