For hallucination mitigation, the first results are stangirard/quivr (This repository provides a retrieval-augmented generation framework that helps ground large language models with custom knowledge bases, addressing hallucinations through contextual retrieval despite lacking explicit self-correction loops or standalone evaluation guardrails), meta-llama/llama-recipes (This repository provides reference implementations and retrieval-augmented generation pipelines for Llama models, serving as a helpful toolkit for factual grounding even though it is not a dedicated hallucination mitigation framework) and marker-inc-korea/autorag. openai/evals and guardrails-ai/guardrails round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
Compare top open-source LLM hallucination mitigation tools on GitHub, ranked by stars and activity, to find the best fit.
Quivr is a framework for building retrieval-augmented generation pipelines that connect large language models to custom knowledge bases. It serves as a generative AI integration layer that abstracts the process of transforming diverse document sources into searchable context for AI responses. The project orchestrates the end-to-end flow between document ingestion, vector storage management, and model provider interfaces. It features a vector-store-agnostic retrieval system and a modular API layer that allows for flexible switching between different generative model providers. The system cove
This repository provides a retrieval-augmented generation framework that helps ground large language models with custom knowledge bases, addressing hallucinations through contextual retrieval despite lacking explicit self-correction loops or standalone evaluation guardrails.
This project is a collection of reference implementations and recipes for deploying, fine-tuning, and running inference with Llama large language models. It serves as a toolkit and implementation guide for adapting pre-trained models to specific tasks and domain-specific datasets. The repository provides frameworks for developing retrieval augmented generation pipelines to ground model responses in external data. It includes guides for executing quantized inference to reduce memory usage and increase processing speed. The toolkit covers a broad range of capabilities including parameter-effic
This repository provides reference implementations and retrieval-augmented generation pipelines for Llama models, serving as a helpful toolkit for factual grounding even though it is not a dedicated hallucination mitigation framework.
AutoRAG is an automation layer and optimization tool for retrieval-augmented generation. It provides a framework for measuring pipeline performance through an evaluation system and an automated search strategy that identifies the most effective combinations of retrieval and generation modules. The system distinguishes itself through AutoML-style optimization, using hyperparameter grid searches and automated trials to find the highest performing architectural configuration for a specific dataset. It includes a specialized dataset generator that creates synthetic question-answer pairs and groun
AutoRAG provides an automated framework for optimizing retrieval-augmented generation pipelines through evaluation and synthetic data generation, which serves as a practical tool for factual grounding and hallucination mitigation despite focusing primarily on RAG configuration rather than all guardrail features.
Evals is a framework designed for automating, managing, and executing repeatable benchmarking suites to analyze the quality and performance of language models. It provides a platform for running standardized tests to measure model accuracy and track behavioral changes over time. The system distinguishes itself through a modular architecture that uses a standardized adapter layer to normalize inputs and outputs, allowing different models to be swapped and tested interchangeably. It supports the creation of custom benchmarks using proprietary data, enabling quality assurance on sensitive tasks
This repository provides a benchmarking framework for evaluating language model performance and accuracy, serving the automated evaluation aspect of hallucination mitigation even though it does not implement RAG or self-correction loops directly.
Guardrails is a Python SDK that wraps calls to large language models with configurable validation pipelines, corrective actions, and structured output generation. It provides a unified API layer that connects to over 100 language models, applying consistent validation, streaming, and error-handling across providers. The framework validates and corrects model responses against safety and quality rules, detecting and mitigating risks in both inputs and outputs using pre-built and custom validators. The project distinguishes itself through a validator-pipeline architecture that sequentially appl
Guardrails is a Python SDK for applying configurable validation pipelines and corrective actions to large language models, providing structured output generation and output validation to mitigate hallucinations and ensure reliability.
Giskard is an evaluation framework, testing library, and quality monitoring system for large language models and AI agents. It serves as a toolkit for quantifying model performance and reliability, providing specialized capabilities for validating retrieval-augmented generation pipelines. The project distinguishes itself through an automated red teaming tool and security scanner designed to identify vulnerabilities, prompt injections, and safety risks. It utilizes adversarial probing and synthetic edge case generation to quantify model robustness and detect information disclosure. The platfo
Giskard is an evaluation framework and testing library for large language models that supports automated benchmarking, output validation, and RAG pipeline testing, making it a well-suited tool for detecting and measuring model vulnerabilities.
Opik is an observability and evaluation platform designed for generative AI applications and agentic workflows. It provides a centralized environment for tracing execution flows, managing prompt templates, and monitoring production performance, allowing teams to gain visibility into complex model interactions and tool usage without requiring manual application code changes. The platform distinguishes itself through its integrated approach to the AI development lifecycle, combining distributed trace instrumentation with automated evaluation frameworks. It supports model-as-a-judge scoring, syn
Opik is an LLM evaluation and observability platform that helps monitor and assess generative AI applications, though it focuses more on tracking and tracing than active hallucination prevention.
Deepeval is a framework for testing and evaluating large language model applications. It provides a suite of tools for executing automated regression tests, validating model output quality against defined standards, and tracing the execution of complex agent workflows. By integrating these capabilities into development pipelines, the platform ensures consistent performance and reliability throughout the software lifecycle. The platform distinguishes itself through its focus on programmatic validation and observability. It utilizes secondary language models to score output quality and employs
This framework focuses on automated evaluation and validation of large language model outputs, though it functions primarily as an assessment and testing tool rather than a direct runtime guardrail.
Ragas is an evaluation framework designed to measure the performance of retrieval-augmented generation pipelines and autonomous agent workflows. It provides a comprehensive suite of tools for benchmarking system outputs, utilizing language models as automated judges to score performance against defined rubrics and reference data. By standardizing inputs, retrieved contexts, and generated responses into a unified schema, the project enables consistent analysis across complex AI applications. The framework distinguishes itself through its ability to generate synthetic test datasets from existin
Ragas is an evaluation framework specifically built to benchmark retrieval-augmented generation pipelines and measure AI performance, which directly supports the automated evaluation feature for hallucination mitigation.
NeMo-Guardrails is a toolkit for adding programmable safety constraints and dialogue boundaries to large language model conversational systems. It functions as security middleware that intercepts inputs and outputs to block prompt injections, jailbreaks, and sensitive data leaks, while providing a conversational dialogue manager to define structured interaction flows through configuration files. The framework includes a hallucination filter to screen model outputs for factual accuracy and a specialized modeling language for defining conversational flows and constraints. It provides capabiliti
This toolkit functions as an input and output guardrail for LLM conversational systems, featuring built-in hallucination filters and constraint management, though it focuses more on safety and dialogue boundaries than end-to-end RAG grounding or automated benchmarking.
DSPy is a declarative programming framework designed for building complex language model applications. It treats model interactions as modular, composable programs, allowing developers to define task logic through typed class schemas rather than relying on manually written prompts. By organizing workflows into hierarchical, reusable Python objects, the framework enables the construction of sophisticated AI systems that manage state and execution flow independently. The framework distinguishes itself through an automated optimization engine that iteratively refines prompt instructions and few-
DSPy is a declarative programming framework for building complex language model applications with built-in optimization and refinement capabilities, fitting the category of tools used to improve reliability and reduce errors despite not being a dedicated hallucination scanner.
An automatic MLLM hallucination detection framework
This framework focuses on detecting hallucinations in multimodal language models, directly addressing the search for evaluation and mitigation tools despite lacking some broader features like RAG or output guardrails.
CVPR 2025 Mitigating Object Hallucinations in Large Vision-Language Models with Assembly of Global and Local Attention
This repository provides a method to mitigate object hallucinations in vision-language models by assembling global and local attention mechanisms, fitting the category of hallucination reduction even though its scope is specifically focused on computer vision models.
CVPR 2024 Highlight Mitigating Object Hallucinations in Large Vision-Language Models through Visual Contrastive Decoding
This repository provides a concrete algorithm for mitigating hallucinations in vision-language models through visual contrastive decoding, fitting the domain of hallucination reduction even if it focuses specifically on the multimodal computer vision setting.
FaithScore: Fine-grained Evaluations of Hallucinations in Large Vision-Language Models
This repository provides a fine-grained evaluation framework for measuring hallucinations in large vision-language models, covering the automated evaluation and benchmarking aspect of the search.
ICML 2024 Official implementation for "HALC: Object Hallucination Reduction via Adaptive Focal-Contrast Decoding"
This repository provides the official implementation of an adaptive focal-contrast decoding method specifically designed to reduce object hallucinations in large vision-language models, fitting the category as a targeted mitigation tool even though it focuses on decoding strategies rather than a full suite of guardrails.
Guidance is a control framework and generation orchestrator for large language models. It provides a programming layer to steer model outputs through structured templates, schema enforcement, and logical flow management. The framework distinguishes itself by interleaving model generation with local code execution, enabling the use of loops and conditional branching within a single session. It employs grammar-based token constraints and regular expressions to force models to sample only from tokens that satisfy a specific structural format, ensuring strict adherence to predefined data models.
Guidance is an LLM generation orchestrator and grammar-constrained control framework that helps prevent structural and logical hallucinations by enforcing strict schemas, though it lacks dedicated RAG and benchmarking features.
Evaluation and Tracking for LLM Experiments and AI Agents
TruLens provides evaluation and tracking for LLM experiments and applications, offering automated evaluation and benchmarking features that align well with this search even though it focuses on observation rather than active guardrails.
ICML 2025 Official implementation of paper 'Look Twice Before You Answer: Memory-Space Visual Retracing for Hallucination Mitigation in Multimodal Large Language Models'.
This repository provides a research implementation for memory-space visual retracing to mitigate hallucinations in multimodal large language models, fitting the category although it focuses specifically on a research-oriented mitigation method rather than a comprehensive production framework.
✨✨Woodpecker: Hallucination Correction for Multimodal Large Language Models
Woodpecker is a hallucination correction tool specifically designed for multimodal large language models, providing a targeted framework that addresses the core need to detect and fix generated errors.
ACL 2024 Logical Closed Loop: Uncovering Object Hallucinations in Large Vision-Language Models. Detect and mitigate object hallucinations in LVLMs by itself through logical closed loops.
LogicCheckGPT provides a specialized framework for detecting and mitigating object hallucinations in large vision-language models using logical closed loops, directly aligning with the search for hallucination reduction tools.
ECCV 2024 Paying More Attention to Image: A Training-Free Method for Alleviating Hallucination in LVLMs
This repository provides a training-free method designed specifically to alleviate hallucinations in large vision-language models, fitting the category of hallucination mitigation tools even though it focuses primarily on image-based tasks.
Aligning LMMs with Factually Augmented RLHF
This repository provides a framework for aligning large multimodal models using factually augmented reinforcement learning, directly addressing hallucination reduction through factual grounding.
ACL 2024 Logical Closed Loop: Uncovering Object Hallucinations in Large Vision-Language Models. Detect and mitigate object hallucinations in LVLMs by itself through logical closed loops.
This repository provides a logical closed-loop framework specifically designed to detect and mitigate object hallucinations in large vision-language models, fitting the core category well despite lacking features like general RAG or broad uncertainty scoring.
Finegrained CLIPScore to detect object hallucination
This repository provides a specialized fine-grained CLIPScore evaluation tool focused on detecting object hallucinations in vision-language models, fitting the category as a targeted assessment utility despite lacking broader mitigation or guardrail features.
mPLUG-HalOwl: Multimodal Hallucination Evaluation and Mitigating
mPLUG-HalOwl is a research-oriented toolkit focused specifically on multimodal large language model hallucination evaluation and mitigation, aligning directly with the core category needs even though it centers on the multimodal domain.
NeurIPS 2024 Mitigating Object Hallucination via Concentric Causal Attention
This repository provides a concrete algorithmic method for mitigating object hallucinations in multimodal models, fitting the category through its focus on reducing factual errors even though it lacks broader guardrail and evaluation features.
ICLR 2024 Analyzing and Mitigating Object Hallucination in Large Vision-Language Models
This repository provides a concrete algorithmic method for detecting and mitigating object hallucinations in large vision-language models, fitting the category well despite focusing on the multimodal domain.
Less is More: Mitigating Multimodal Hallucination from an EOS Decision Perspective (ACL 2024)
This repository provides a research-backed method for mitigating multimodal model hallucinations from an end-of-sequence decision perspective, fitting the category as a specialized mitigation approach even though it lacks broader automated evaluation and guardrail features.
| 🔥 News | 🤖️ Demo | 🚀 Quick Start | 💾 Benchmark | 📖 Docs |
This repository provides a framework designed for checking and validating factual consistency in language model outputs, aligning well with the core need for hallucination detection.
Fiddler Auditor is a tool to evaluate language models.
Fiddler Auditor is a Python-based evaluation tool designed for assessing language models, fitting the category through its focus on model evaluation though lacking explicit built-in features for real-time guardrails or self-correction loops.
UQLM: Uncertainty Quantification for Language Models, is a Python package for UQ-based LLM hallucination detection
UQLM is a Python package specifically designed for uncertainty quantification and hallucination detection in large language models, matching the core verification domain even though it focuses primarily on confidence scoring rather than the full suite of mitigation strategies.
MedHallTune: A Benchmark and Instruction Tuning Dataset for Mitigating Medical Hallucination in Vision-Language Models
This repository provides a benchmark and instruction-tuning dataset specifically tailored for evaluating and reducing hallucinations in medical vision-language models, fitting the automated evaluation aspect of the search.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| stangirard/quivr | 39.2K | Python | NOASSERTION | |
| meta-llama/llama-recipes | 18.4K | Jupyter Notebook | MIT | |
| marker-inc-korea/autorag | 4.8K | Python | Apache-2.0 | |
| openai/evals | 18.7K | Python | NOASSERTION | |
| guardrails-ai/guardrails | 7K | Python | Apache-2.0 | |
| giskard-ai/giskard | 5.4K | Python | Apache-2.0 | |
| comet-ml/opik | 17.8K | Python | apache-2.0 | |
| confident-ai/deepeval | 13.7K | Python | apache-2.0 | |
| vibrantlabsai/ragas | 12.7K | Python | apache-2.0 | |
| nvidia/nemo-guardrails | 6.5K | Python | NOASSERTION |