Data/GitHub/Framework
contextgem
by shcherbak-ai·Last observed 2026-10-27
★ 2,019 stars⑂ 186 forks
ContextGem is an open-source framework for extracting structured data and insights from documents with LLMs and decision models. Describe what to extract; a reusable pipeline produces typed, validated values with references to source paragraphs or sentences and optional justifications. Model groups can route each question to a suitable model and use fallbacks.
Useful for
- Extract payment terms and anomalies from a contract, with each result linked to the relevant passage or sentence.
Key features
- Extract typed values such as text, numbers, dates, booleans, labels, ratings, and JSON objects, with references to their sources.
- Use LLMs for open-ended questions and decision models for closed questions, including probabilities for possible answers.
Requirements & limitations
- The quick start installs the framework with `uv add contextgem` or `pip install -U contextgem`; PDF and other file conversion uses Docling.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.