In phase 1 executes a grounded search query to capture grounding chunks and citation segments, while phase 2 assesses each resolved URL in parallel using the url_context tool to evaluate source claims and calculate fidelity via the formula \( \frac{\text{survived}}{\text{survived} + \text{lost} + \text{distortions}} \times 100 \).
sequenceDiagram
participant User
participant Veracity as Veracity Engine
participant Gemini as Gemini Model
participant Web as Target URLs
User->>Veracity: Submit query & model
Note over Veracity,Gemini: Phase 1: Grounded Search
Veracity->>Gemini: Run grounded search query
Gemini-->>Veracity: Response text & grounding chunks
Veracity->>Veracity: Resolve redirect URIs to destination URLs
Note over Veracity,Gemini: Phase 2: Parallel URL Assessment
par For each resolved URL
Veracity->>Gemini: Assess URL via url_context tool
Gemini->>Web: Fetch page content
Gemini-->>Veracity: Classified claims (survived, lost, distortions)
end
Veracity->>Veracity: Compute fidelity & aggregate scores
Veracity-->>User: Complete veracity reportReferenced by