New in 1.0: decision models next to LLMs. They answer closed questions with the probability of each answer, fast and at a low cost, and a model group sends each question to the model that suits it. Also new: Docling for your files, and tools for agents.
Hi Product Hunt! I'm Sergii, and I build ContextGem.
ContextGem launched here in April 2025, at version 0.2. It has since reached 1.0, and enough has changed to show it to you again.
Why it exists
Reliable extraction from documents usually means writing prompts, designing validation models, mapping the output back to the source and tracking usage across models. With ContextGem, you describe what you need from a document in plain words, and it does that work. It generates the prompts, validates the output into typed values, and traces every fact to the paragraph or sentence it came from, with a justification if you ask for one.
What's new since the first launch
Decision models next to LLMs. A decision model answers closed questions (yes or no, one of your labels, a level of a scale) with the probability of each possible answer, and writes no text. It is fast and low-cost for the questions you ask in volume, and you set the threshold.
The right model for each question. A model group sends the open questions to an LLM and the closed ones to a decision model, and any model can fall back on others.
Your files as they are. With Docling, ContextGem starts from PDF (scanned too), Office files, email, images, audio, video and more. Table rows keep their column headers, and the items from paged files come back with their page numbers.
Agentic workflows. Extract the metadata of documents as they arrive, call an extraction from an agent's tool, or let a decision model choose the next step.
Cloud or local. LLMs through LiteLLM (OpenAI, Anthropic, Google, Ollama, LM Studio and more), and decision models from TypeSafe, OpenAI, Microsoft Foundry or your own server.
What it is not
ContextGem reads one document in depth, every paragraph of it. It does not search across a corpus, which RAG frameworks do better.
It's free and open source (Apache 2.0):
uv add contextgem
I'd love your feedback. Which questions about your documents would you give to a decision model rather than an LLM? And what is missing for your use case?
The model-group routing is the part that stood out to me. Sending closed questions — yes/no, a label, a point on a scale — to a decision model that returns a probability and writes no text, while the LLM handles the open questions, feels like the right split for high-volume extraction. Tracing each fact back to its source paragraph matters just as much when you need to check why something got a particular label. I would give the decision model the repetitive classification first, and keep the LLM for anything where the wording itself is the answer.
closed questions seem like a good place to avoid paying for generated text
the source paragraph still matters when u need to check why a document got a particular label
About ContextGem 1.0 on Product Hunt
“Decision models join LLMs to extract data from documents”
ContextGem 1.0 launched on Product Hunt on October 27th, 2026 and earned 83 upvotes and 3 comments, placing #19 on the daily leaderboard. New in 1.0: decision models next to LLMs. They answer closed questions with the probability of each answer, fast and at a low cost, and a model group sends each question to the model that suits it. Also new: Docling for your files, and tools for agents.
ContextGem 1.0 was featured in Open Source (69k followers), Developer Tools (522k followers), Artificial Intelligence (482.2k followers) and GitHub (41.5k followers) on Product Hunt. Together, these topics include over 273.7k products, making this a competitive space to launch in.
Who hunted ContextGem 1.0?
ContextGem 1.0 was hunted by Sergii Shcherbak. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.
Want to see how ContextGem 1.0 stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.
Hi Product Hunt! I'm Sergii, and I build ContextGem.
ContextGem launched here in April 2025, at version 0.2. It has since reached 1.0, and enough has changed to show it to you again.
Why it exists
Reliable extraction from documents usually means writing prompts, designing validation models, mapping the output back to the source and tracking usage across models. With ContextGem, you describe what you need from a document in plain words, and it does that work. It generates the prompts, validates the output into typed values, and traces every fact to the paragraph or sentence it came from, with a justification if you ask for one.
What's new since the first launch
Decision models next to LLMs. A decision model answers closed questions (yes or no, one of your labels, a level of a scale) with the probability of each possible answer, and writes no text. It is fast and low-cost for the questions you ask in volume, and you set the threshold.
The right model for each question. A model group sends the open questions to an LLM and the closed ones to a decision model, and any model can fall back on others.
Your files as they are. With Docling, ContextGem starts from PDF (scanned too), Office files, email, images, audio, video and more. Table rows keep their column headers, and the items from paged files come back with their page numbers.
Agentic workflows. Extract the metadata of documents as they arrive, call an extraction from an agent's tool, or let a decision model choose the next step.
Cloud or local. LLMs through LiteLLM (OpenAI, Anthropic, Google, Ollama, LM Studio and more), and decision models from TypeSafe, OpenAI, Microsoft Foundry or your own server.
What it is not
ContextGem reads one document in depth, every paragraph of it. It does not search across a corpus, which RAG frameworks do better.
It's free and open source (Apache 2.0):
I'd love your feedback. Which questions about your documents would you give to a decision model rather than an LLM? And what is missing for your use case?
GitHub: https://github.com/shcherbak-ai/contextgem
Docs: https://contextgem.shcherbak.ai