{"adoption": {"forks": 183, "observed_at": "2026-08-28T04:06:03.281536+00:00", "stars": 1993}, "canonical_url": "https://ross.abutalabs.com/products/contextgem", "card": {"archived": false, "artifact_type": "library", "description": "ContextGem: Effortless LLM extraction from documents", "domain": ["large-language-models", "artificial-intelligence", "legal", "data-science"], "enriched": true, "function": ["llm-inference", "nlp", "rag", "prompt-engineering", "serialization"], "health_score": 98, "homepage": "https://contextgem.dev/", "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "active", "member_repos": ["shcherbak-ai/contextgem"], "name": "shcherbak-ai/contextgem", "platform": ["python", "cross-platform"], "pushed_at": "2026-08-13T15:57:23+00:00", "repo": "shcherbak-ai/contextgem", "stars": 1993, "tags": ["document-intelligence", "information-extraction", "aspect-extraction", "concept-extraction", "contract-analysis", "structured-data", "llm-framework", "legaltech", "zero-shot-extraction", "multimodal", "natural-language-processing", "documents"], "topics": ["ai", "contract-analysis", "data-extraction", "document-intelligence", "generative-ai", "legaltech", "llm", "llm-extraction", "llm-framework", "llm-pipeline", "llms", "nlp", "prompt-engineering", "text-analysis", "unstructured-data", "autoprompting"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/contextgem", "repo": "shcherbak-ai/contextgem", "role": "main", "score": 87}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:03.281536+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T03:02:36.116967+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3dffe4b191cc727ec029405b24e02f4477d45e7b5b17a4389c1b078cd89d5910", "fetched_at": "2026-08-28T04:06:03.281536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/shcherbak-ai/contextgem"}, {"content_hash": "2aa5f69149b2abc3fda54e9330209ea83b9ba30ee28bf0e689a94a8556526f42", "fetched_at": "2026-08-29T10:42:25.403073+00:00", "kind": "homepage", "missing": false, "url": "https://contextgem.dev/"}, {"content_hash": "3e7c5bd1fdabfd599591505eef29bc137902d4ce48b27916d66ef85dd728a78d", "fetched_at": "2026-08-29T10:42:25.412134+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/installation"}, {"content_hash": "02390ad2f9e2c18df5796a4bf0556d8abdd54bb56c09cd16a060e33070780e3f", "fetched_at": "2026-08-29T10:42:25.413921+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/quickstart"}, {"content_hash": "5177d9e46df89f9657c4c2723c4cd4af2fe2a171923c1039b9b5b73d1715dd75", "fetched_at": "2026-08-29T10:42:25.416202+00:00", "kind": "site_page", "missing": false, "url": "https://contextgem.dev/optimizations/optimization_long_docs"}, {"content_hash": "0a31e4472ecfbb4067ede2c8dbf139d95f118e9850905548afbad998ae0d13b8", "fetched_at": "2026-08-29T10:42:25.417845+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/contextgem/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 97, "longevity": 49, "rhythm": 97}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 691, "days_push": 20, "days_rel": 20, "gap_med": 5.0, "n_releases_24m": 51}, "score": 87, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}