HallucinationDetectorConfig
Options & Configuration · AiDotNet.Safety.Text
Configuration for hallucination detection modules.
For Beginners
Use this to configure hallucination detection. You can set the threshold for how confident the detector must be before flagging content as hallucinated, and choose whether to use reference-based or self-consistency methods.
Constructors
| Constructor | Summary |
|---|---|
HallucinationDetectorConfig() |
Properties
| Property | Summary |
|---|---|
bool? PerClaimVerification { get; set; } |
Whether to extract and verify individual claims. |
double? Threshold { get; set; } |
Hallucination score threshold (0.0-1.0). |
int? ConsistencySamples { get; set; } |
Number of samples for self-consistency checking. |