anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow that checks a text against a source document with Ollama models on your own machine. A fact-checking model marks each sentence Yes or No, and a second model summarizes the sentences marked No.
Sentence-by-sentence fact check with local Ollama models is an n8n workflow in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Test run or another workflow
It starts when you click Test workflow, or when another workflow calls it with:
A short summary that counts and lists the sentences the document does not support
What you need before you start.
Local language models
Runs bespoke-minicheck to check each sentence and qwen2.5:1.5b to write the summary.
NeedsAn Ollama that n8n can reach, with both models pulled
Checked by Mindket on 13 Nov 2026
This n8n workflow checks a text against a source document, one sentence at a time. A Code node splits the text into sentences. A small Ollama model called bespoke-minicheck reads the document with each sentence and answers Yes or No. The sentences marked No are gathered, and a second Ollama model, qwen2.5:1.5b, writes a short summary of the problems. Thirteen nodes do the work, beside five sticky notes.
Editors, writers and teams who check a draft against a source, and builders who want a fact check they can call from another workflow. Skip it if you need claims checked against the open web. It judges sentences only against the document you give it.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Publishing | Editors | Check an article against the report it summarizes | An editor pastes the report as the document and the draft as the text, then reads the list of flagged sentences. |
| Software | Builders of AI tools | Check a model’s answer against the passage it was given | A developer calls the workflow after a retrieval step to flag unsupported sentences. |
| Education | Teachers | Check a student summary against the reading | A teacher marks which sentences of a summary the chapter does not back up. |
| Research | Analysts | Compare a press release with the filing it quotes | An analyst finds the sentences that go beyond the filing. |
You need a little n8n and Ollama: import a file, add one credential, pull two models and replace two sample texts.
Any n8n that can reach your Ollama will run it. It also works as a sub-workflow that other workflows call with a document and a text.
facts and textDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Pull the two models before the first run.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own, with a network path to Ollama |
| Ollama | Installed and running, with bespoke-minicheck and qwen2.5:1.5b pulled |
| A document and a text | The source and the text to check, as facts and text |
workflow.json.ollama pull bespoke-minicheck and ollama pull qwen2.5:1.5b on the machine that runs Ollama.Ollama Chat Model and create an Ollama credential. Its Base URL starts as http://localhost:11434. Change it if Ollama runs on another machine.Ollama Model and select the same credential.Edit Fields and replace the sample facts and text with your own.Press Execute workflow after editing the two fields in Edit Fields. The summary is the text field that Basic LLM Chain returns. To call it from another workflow, pass facts and text to When Executed by Another Workflow.
| To change | Where |
|---|---|
| The document and the text | facts and text in Edit Fields, or the inputs of the calling workflow |
| The models | Model in Ollama Chat Model and in Ollama Model |
| The summary | The system message in Basic LLM Chain |
| What counts as a problem | The No in Filter |
| How the text is split | The code in Code |
The sample document says a fictional library holds about 40,000 books on three-week loans and is closed on Mondays. The sample text says more than 100,000 books, six-week loans and open every day.
The checker should mark those two sentences No, and the summary should list them as the incorrect statements. The sentences that match the document come back Yes and drop out at Filter.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. This one splits a text into sentences, asks a model about each, keeps the doubtful ones and summarizes them. Run it once on the sample, then open Filter to see which sentences came out.
For experts. Basic LLM Chain4 reads the document from Merge1 by name, so every sentence is checked against the same text.
| Node | What it does | What to know |
|---|---|---|
Code | Splits text into sentences | It stops with an error when the text is empty |
Merge1 and Split Out1 | Join the document with the sentence list, then make one item for each sentence in claim | The join is by position |
Basic LLM Chain4 | Basic LLM Chain 1.5 with the prompt Document: plus the document and Claim: plus the sentence | Its model is Ollama Chat Model, set to bespoke-minicheck:latest |
Merge and Filter | Pair each claim with its answer, then keep the answers equal to No | The comparison is strict, so only an exact No passes |
Basic LLM Chain | Summarizes the list from Aggregate under a system message | Its model is Ollama Model, set to qwen2.5:1.5b |
The checker tests support by the document, not truth, and a small model writes the summary.
Code splits after a full stop, an exclamation mark or a question mark that is followed by a space and a capital letter, so Dr. Lee ends a piece. Its date guard lists German month namesqwen2.5:1.5b is a small model, so pick a larger one in Ollama Model if its summary is poorNo is dropped by FilterAn n8n workflow that checks a text against a source document, one sentence at a time. A small fact-checking model served by
Ollama marks each sentence Yes or No, the sentences marked No are collected, and a second Ollama model writes a short summary of
the problems. It can be run by hand or called from another workflow.
workflow.json: the workflow as n8n exports it, thirteen working nodes and five sticky notes. It holds no credential.README.md: these notes.Edit Fields was two paragraphs about a named researcher, followed by a made-up article about her that mixed inollama pull bespoke-minicheck for the checker andollama pull qwen2.5:1.5b for the summary. Ollama's page for the checker, read on 12 November 2026, lists it at 4.7GB with aworkflow.json.Ollama Chat Model and create an Ollama credential. Its Base URL starts as http://localhost:11434. Change it if OllamaOllama Model and select the same credential.Edit Fields. The facts field holds the source document and text holds the text to check. Replace both samples.text field of Basic LLM Chain.When clicking ‘Test workflow’, which feeds Edit Fields, or at When Executed by Another Workflow, whichfacts and text from the calling workflow.Code splits text into sentences. It stops with "Input text is empty" when the text is blank.Merge1 joins the item that carries facts and text with the item that carries the sentence list, by position.Split Out1 then turns the list into one item per sentence, in a field named claim.Basic LLM Chain4 sends each claim to Ollama Chat Model (bespoke-minicheck:latest) as Document: followed by theClaim: followed by the sentence. The model answers Yes or No.Merge joins each claim with its answer by position. Filter keeps the items whose answer is exactly No.Aggregate puts the kept items in one list. Basic LLM Chain asks Ollama Model (qwen2.5:1.5b) for a summary withfacts and text in Edit Fields, or the inputs of the calling workflow.Ollama Chat Model and in Ollama Model.Basic LLM Chain. The sticky note says you may delete the summary part and return the rawAggregate.No in Filter.Code.Code splits after a full stop, an exclamation mark or a question mark that is followed by a space and a capital letter. ADr. Lee therefore ends a piece. Its date guard lists German month names.qwen2.5:1.5b is a small model. Pick a larger one in Ollama Model if its summary is poor.No is dropped by Filter.NOTICE.md 670 B README.md 4 KB workflow.json 14 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
AbdomenAtlas · Kit
Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…