awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

LLM hallucination mitigation

Ranking updated Sep 7, 2026

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.

LLM hallucination mitigation

Find the best repos with AI.We'll search the best matching repositories with AI.
  • stangirard/quivrStanGirard avatar

    StanGirard/quivr

    39,167View on GitHub↗

    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.

    PythonRetrieval Augmented GenerationRAG FrameworksRAG Pipelines
    View on GitHub↗39,167
  • meta-llama/llama-recipesmeta-llama avatar

    meta-llama/llama-recipes

    18,379View on GitHub↗

    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.

    Jupyter NotebookRetrieval Augmented GenerationRAG FrameworksRAG Pipelines
    View on GitHub↗18,379
  • marker-inc-korea/autoragMarker-Inc-Korea avatar

    Marker-Inc-Korea/AutoRAG

    4,833View on GitHub↗

    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.

    PythonGrounded Answer GenerationRetrieval Augmented Generation PipelinesRAG Evaluation Frameworks
    View on GitHub↗4,833
  • openai/evalsopenai avatar

    openai/evals

    18,702View on GitHub↗

    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.

    PythonLLM EvaluationModel Benchmarking Suites
    View on GitHub↗18,702
  • guardrails-ai/guardrailsguardrails-ai avatar

    guardrails-ai/guardrails

    7,033View on GitHub↗

    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.

    PythonGuardrail Servers
    View on GitHub↗7,033
  • giskard-ai/giskardGiskard-AI avatar

    Giskard-AI/giskard

    5,434View on GitHub↗

    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.

    PythonLLM EvaluationFactuality Benchmarking FrameworksRAG Evaluation Frameworks
    View on GitHub↗5,434
  • comet-ml/opikcomet-ml avatar

    comet-ml/opik

    17,787View on GitHub↗

    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.

    PythonAutomated Output EvaluationLLM Evaluation
    View on GitHub↗17,787
  • confident-ai/deepevalconfident-ai avatar

    confident-ai/deepeval

    13,733View on GitHub↗

    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.

    PythonLLM Evaluation
    View on GitHub↗13,733
  • vibrantlabsai/ragasvibrantlabsai avatar

    vibrantlabsai/ragas

    12,659View on GitHub↗

    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.

    PythonAutomated Output EvaluationLLM EvaluationRetrieval Augmented Generation Pipelines
    View on GitHub↗12,659
  • nvidia/nemo-guardrailsNVIDIA avatar

    NVIDIA/NeMo-Guardrails

    6,453View on GitHub↗

    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.

    PythonLLM Evaluation
    View on GitHub↗6,453
  • stanfordnlp/dspystanfordnlp avatar

    stanfordnlp/dspy

    35,325View on GitHub↗

    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.

    PythonLLM EvaluationModel Evaluation
    View on GitHub↗35,325
  • junyangwang0410/haelmjunyangwang0410 avatar

    junyangwang0410/HaELM

    19View on GitHub↗

    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.

    PythonEvaluation BenchmarksHallucination Mitigation
    View on GitHub↗19
  • lackel/aglaLackel avatar

    Lackel/AGLA

    68View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗68
  • damo-nlp-sg/vcdDAMO-NLP-SG avatar

    DAMO-NLP-SG/VCD

    406View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗406
  • bcdnlp/faithscorebcdnlp avatar

    bcdnlp/FAITHSCORE

    33View on GitHub↗

    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.

    PythonEvaluation BenchmarksHallucination Mitigation
    View on GitHub↗33
  • billchan226/halcBillChan226 avatar

    BillChan226/HALC

    114View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗114
  • microsoft/guidancemicrosoft avatar

    microsoft/guidance

    21,502View on GitHub↗

    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.

    Jupyter NotebookInterleaved Logic ExecutionGeneration Flow OrchestratorsGenerator-Based Flow Control
    View on GitHub↗21,502
  • truera/trulenstruera avatar

    truera/trulens

    3,384View on GitHub↗

    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.

    PythonEvaluation and ObservabilityEvaluation FrameworksEvaluation Frameworks
    View on GitHub↗3,384
  • 1zhou-wang/memvr1zhou-Wang avatar

    1zhou-Wang/MemVR

    173View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗173
  • bradyfu/woodpeckerBradyFU avatar

    BradyFU/Woodpecker

    650View on GitHub↗

    ✨✨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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗650
  • hyperwjf/logiccheckgptHyperwjf avatar

    Hyperwjf/LogicCheckGPT

    25View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗25
  • lalbj/paiLALBJ avatar

    LALBJ/PAI

    171View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗171
  • llava-rlhf/llava-rlhfllava-rlhf avatar

    llava-rlhf/LLaVA-RLHF

    396View on GitHub↗

    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.

    PythonAlignment and RLHFHallucination MitigationMitigation Methods
    View on GitHub↗396
  • cripac-dig/logiccheckgptCRIPAC-DIG avatar

    CRIPAC-DIG/LogicCheckGPT

    25View on GitHub↗

    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.

    Python
    View on GitHub↗25
  • abzb1/f-clipabzb1 avatar

    abzb1/f-clip

    5View on GitHub↗

    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.

    PythonEvaluation Benchmarks
    View on GitHub↗5
  • x-plug/mplug-halowlX-PLUG avatar

    X-PLUG/mPLUG-HalOwl

    100View on GitHub↗

    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.

    PythonHallucination Mitigation
    View on GitHub↗100
  • xing0047/cca-llavaxing0047 avatar

    xing0047/cca-llava

    66View on GitHub↗

    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.

    PythonMitigation Methods
    View on GitHub↗66
  • yiyangzhou/lureYiyangZhou avatar

    YiyangZhou/LURE

    157View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗157
  • yuezih/less-is-moreyuezih avatar

    yuezih/less-is-more

    57View on GitHub↗

    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.

    PythonHallucination MitigationMitigation Methods
    View on GitHub↗57
  • amazon-science/refcheckerA

    amazon-science/RefChecker

    0View on GitHub↗

    | 🔥 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.

    Security & Privacy
    View on GitHub↗0
  • fiddler-labs/fiddler-auditorfiddler-labs avatar

    fiddler-labs/fiddler-auditor

    192View on GitHub↗

    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.

    PythonObservability and Evaluation
    View on GitHub↗192
  • cvs-health/uqlmcvs-health avatar

    cvs-health/uqlm

    1,169View on GitHub↗

    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.

    PythonApplication ServicesEvaluation Frameworks
    View on GitHub↗1,169
  • russellyq/medhalltunerussellyq avatar

    russellyq/MedHallTune

    5View on GitHub↗

    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.

    PythonEvaluation Benchmarks
    View on GitHub↗5
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
stangirard/quivr39.2KPythonNOASSERTIONJul 9, 2025
meta-llama/llama-recipes18.4KJupyter NotebookMITMay 19, 2026
marker-inc-korea/autorag4.8KPythonApache-2.0Jun 17, 2026
openai/evals18.7KPythonNOASSERTIONApr 14, 2026
guardrails-ai/guardrails7KPythonApache-2.0Jun 22, 2026
giskard-ai/giskard5.4KPythonApache-2.0Jun 17, 2026
comet-ml/opik17.8KPythonapache-2.0Feb 19, 2026
confident-ai/deepeval13.7KPythonapache-2.0Feb 19, 2026
vibrantlabsai/ragas12.7KPythonapache-2.0Jan 31, 2026
nvidia/nemo-guardrails6.5KPythonNOASSERTIONJun 17, 2026

Related searches

  • a tool for detecting LLM hallucinations
  • a toolkit for detecting prompt injection attacks
  • a library for speeding up LLM token generation
  • a framework for evaluating LLM output quality
  • a library for guardrails on LLM outputs
  • a caching layer for LLM API calls
  • a toolkit for red-teaming language models
  • a library for structured LLM outputs