Ross ROSS = Recommend OSS · open-source software intelligence for agents

shcherbak-ai/contextgem

ContextGem: Effortless LLM extraction from documents observed · 2026-08-28

github.com/shcherbak-ai/contextgem · homepage · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

87/100

  • Activity 97
  • Release rhythm 97
  • Longevity 49
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 5.0
  • age_days: 691
  • days_rel: 20
  • days_push: 20
  • n_releases_24m: 51

Full methodology

Adoption not part of the score

1993 stars · 183 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

ContextGem is an open-source Python LLM framework for extracting structured data and insights from documents with minimal code. It provides declarative APIs for defining aspects and concepts, reusable extraction pipelines, and support for cloud and local LLM providers.

Use cases

  • extract structured data from contracts with an LLM
  • pull specific clauses out of legal agreements
  • extract dates, numbers, and JSON objects from documents
  • analyze long PDFs and reports for key sections
  • build reusable document extraction pipelines
  • parse unstructured text into structured fields without prompt engineering
  • identify topics and sections in research papers or financial reports

When to choose

  • you need structured extraction (aspects, concepts, typed fields) from documents with minimal boilerplate
  • you want automatic prompting and justification/reference mapping out of the box
  • you work with legal, financial, or other long-form documents and need semantic segmentation rather than naive chunking
  • you want a Python library that works with multiple cloud and local LLM providers

When to avoid

  • you need a general-purpose RAG system with vector search and retrieval over a corpus
  • you need high-throughput bulk document OCR or image processing rather than LLM-based extraction
  • you want a no-code UI or hosted service instead of a Python library
  • your extraction tasks are simple regex or template parsing that doesn't need an LLM

Facets

library · maturity active

llm-inference nlp rag prompt-engineering serialization large-language-models artificial-intelligence legal data-science python cross-platform document-intelligence information-extraction aspect-extraction concept-extraction contract-analysis structured-data llm-framework legaltech zero-shot-extraction multimodal natural-language-processing documents

6 sources

Member repositories

RepositoryRoleHealth v2
shcherbak-ai/contextgemmain87

For agents

markdown · JSON · MCP: product_card(name="shcherbak-ai/contextgem")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem