A per-URL fidelity score is calculated using the formula \(\frac{\text{survived}}{\text{survived} + \text{lost} + \text{distortions}} \times 100\) after evaluating extracted source page text against the model's grounded response segments.

flowchart TD
    A[Grounded Response + Source URL] --> B[Gemini url_context Assessment]
    B --> C[Extract Fact Counts]
    C --> D[Survived Facts]
    C --> E[Lost Facts]
    C --> F[Distortions]
    D --> G["Score = Survived /<br/>(Survived + Lost + Distortions) * 100"]
    E --> G
    F --> G
    G --> H[Per-URL Fidelity Score: 0-100%]