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
- Claim
Grounding Result - Result of grounding a single claim
- Groundedness
Checker - Groundedness checker implementation
- Groundedness
Config - Configuration for groundedness checking
- Groundedness
Result - Overall groundedness result
- LlmGroundedness
Checker - Extended groundedness checker with LLM support
- LlmVerification
Request - LLM verification request for groundedness
- LlmVerification
Response - LLM verification response
- Mock
LlmVerifier - Mock LLM verifier for testing
- Source
Document - A source document for grounding
Enums§
- Claim
Type - Types of claims
- Grounding
Method - Method used for grounding verification
Constants§
- DEFAULT_
VERIFICATION_ PROMPT - Default system prompt for LLM verification
Traits§
- LlmGroundedness
Verifier - Trait for LLM-based groundedness verification