contextgem
Extract structured data and insights from documents using LLMs and decision models
2.0k ★ on GitHub
What it is
Extract structured data and insights from documents using LLMs and decision models
The homepage listed on the repository, contextgem.shcherbak.ai, puts it like this: ContextGem is a free, open-source framework for extracting structured data and insights from documents using LLMs and decision models: start here for the guides, examples and API reference.
Getting started
From the README:
uv add contextgem # or: pip install -U contextgem
uv add "contextgem[docling]" # with Docling, to convert PDF, DOCX and other filesWhere the decision sits
contextgem calls the hosted decision API rather than running its own weights. That keeps the project small and means its behaviour moves whenever the vendor ships a new model version. It also means an API key and a network round trip sit in the path of every decision.
Models it references: Jev.
How active it is
Created 2024-10-11, last pushed 2026-10-28, 2,045 stars and 187 forks when we read it on 2026-11-02. Everything in this category is weeks old at most, so a stale push date means something different here than it would on a mature project. Check the repository before you depend on it.
Find out what your data actually supports
We turn your historical decisions into a frozen test set, then tell you which model, which threshold, and how much of it you can safely automate.