AlgoViz

Building a grounded, cited response

medium 7 min

A grounded answer links specific claims to the specific source passages that support them.

Trace the example

Follow the evidence through each stage, then test a change in the case.

Support two claims with two different sources

Support two claims with two different sources. Selected component: Policy passages inside Evidence store.
Open full-size diagram

Evidence store

P2 window · P7 fee

A customer asks when returns close and whether shipping is refunded. These are separate claims with different supporting passages.

Both citations resolve, but P7 discusses delivery time rather than fees. What failed?

Reserve room for evidence

2,696 tokens available for evidence

The example context limit is 4,096. Account for delimiters and serialized tool descriptions before packing passages.