Skip to main content
An agent that writes a report can cite a source for a sentence that the source does not support. A person who reads the report cannot see that, and a second read of every source by a person costs what the agent was meant to save. The check can be done by a program, because every record is stored and every passage has a place. A second agent, or one loop of code, sends each sentence against the record it cites and reads the result.

Check the quotes word for word

A quotation must be in the source as written. Send the quoted words as highlights to the record the report cites, with deterministic_only set to true, so that no model takes part.
Replace CONTENTS_ID with the id of the record that the report cites. This request checks 5 quotes of one draft in one call. Of the 5, 3 are in the agreement as quoted. The second is not: the agreement says 2 percent, and the draft says 3. The fourth is not there either: the draft quotes a grace period that the agreement does not have. This response is cut to the 2 parts that say so.
200 OK
A quote is confirmed if it has a highlight whose basis is exact or near. A quote with the notice highlight_not_found goes back to the writer. The check costs nothing, and the same draft against the same records gives the same result on every run.

Check the sentences that are not quotes

A sentence in the report’s own words has no match word for word. Send it without deterministic_only. A model then looks for the blocks of the source that bear on the sentence. One call takes up to 5 sentences, and one call costs one model step if any of them needs a model.

Check that the reader will see the same source

A check proves a sentence against the record. The reader opens the live page, which might have changed after the fetch. Fetch the page again with the record’s fingerprint as baseline_fingerprint before the report goes out. For the request, see Find the one cell that changed.