Module groundedness

Module groundedness 

Source
Expand description

Groundedness Verification

Implements hybrid groundedness checking for AI responses:

  • Local citation matching (fast, deterministic)
  • LLM-based verification (for uncertain cases)

Groundedness measures whether claims in a response are supported by provided sources/citations.

Structs§

Claim
A claim extracted from a response
ClaimGroundingResult
Result of grounding a single claim
GroundednessChecker
Groundedness checker implementation
GroundednessConfig
Configuration for groundedness checking
GroundednessResult
Overall groundedness result
LlmGroundednessChecker
Extended groundedness checker with LLM support
LlmVerificationRequest
LLM verification request for groundedness
LlmVerificationResponse
LLM verification response
MockLlmVerifier
Mock LLM verifier for testing
SourceDocument
A source document for grounding

Enums§

ClaimType
Types of claims
GroundingMethod
Method used for grounding verification

Constants§

DEFAULT_VERIFICATION_PROMPT
Default system prompt for LLM verification

Traits§

LlmGroundednessVerifier
Trait for LLM-based groundedness verification