Detect hallucinations using specialised Ollama model bespoke min
Fact-Checking Workflow Documentation Overview This workflow is designed for automated fact-checking of texts. It uses AI models to compare a given text with ...
🔌 Nodes & Integrations Used (4)
📖 Implementation & Setup Guide
Fact-Checking Workflow Documentation
Overview This workflow is designed for automated fact-checking of texts. It uses AI models to compare a given text with a list of facts and identify potential discrepancies or hallucinations.
Components
1. Input - The workflow can be initiated in two ways: a) Manually via the "When clicking 'Test workflow'" trigger b) By calling from another workflow via the "When Executed by Another Workflow" trigger - Required inputs: - `facts`: A list of verified facts - `text`: The text to be checked
2. Text Preparation - The "Code" node splits the input text into individual sentences - Takes into account date specifications and list elements
3. Fact Checking - Each sentence is individually compared with the given facts - Uses the "bespoke-minicheck" Ollama model for verification - The model responds with "Yes" or "No" for each sentence
4. Filtering and Aggregation - Sentences marked as "No" (not fact-based) are filtered - The filtered results are aggregated
5. Summary - A larger language model (Qwen2.5) creates a summary of the results - The summary contains: - Number of incorrect factual statements - List of incorrect statements - Final assessment of the article's accuracy
Usage 1. Ensure the "bespoke-minicheck" model is installed in Ollama (`ollama pull bespoke-minicheck`) 2. Prepare a list of verified facts 3. Enter the text to be checked 4. Start the workflow 5. The results are output as a structured summary
Notes - The workflow ignores small talk and focuses on verifiable factual statements - Accuracy depends on the quality of the provided facts and the performance of the AI models
Customization Options - The summarization function can be adjusted or removed to return only the raw data of the issues found - The AI models used can be exchanged if needed
This workflow provides an efficient method for automated fact-checking and can be easily integrated into larger systems or editorial workflows.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Detect_hallucinations_using_specialised_Ollama_model_bespoke_min.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related General Automation Workflows
View All in General Automation →Generate Application Copy
Production-ready n8n automation template for Generate Application Copy built by AhiXLight. Seamlessly connects Execute Workflow Trigger, OpenAI with 4 configured nodes.
2-way sync Google Contacts and Notion
Sync your Google Contacts with your Notion database. You can filter contacts by label or sync all contacts. All contact information is kept in sync between G...
2D Image to 3D Model Automation
Production-ready n8n automation template for 2D Image to 3D Model Automation built by AhiXLight. Seamlessly connects HTTP Request, Google Sheets, Google Drive with 17 configured nodes.
2 way sync assignments completion between Canvas LMS and Notion
Syncs assignments and completion states to and fro between Canvas LMS and a Notion database. Automatically triggers every 2 hours during the schoolday by def...