Verify that the excerpt sent to the AI maintains the rules from the report
Test which pages and layers are needed before integrating the reading into the team’s workflow. The lab is using a 32-page mock report.
Fictional example
The fictional report lists 418 shipments on page 12 and 38 open orders on page 13. Page 14 excludes cancelled orders from the totals and page 31 defines the dispatch date as the reference. The team wants to use less context in the Gemini API and keep all four points. The first test selection omits the pages that explain the rules.
Step by step
- Write the four expected responses and the pages that support them. Mark 12-14 for the numbers and exclusion of canceled items, and 31 for the date rule.
- Start with the layer that addresses the question. If the value is part of an image, compare it with the page’s visualization instead of relying solely on the extracted text.
- In the lab, confirm that the excerpt preserves results, notes, and the chosen layer. Mark the cancellation note and glossary to see when the scenario is ready for comparison.
- During integration, test with the same model and the same question, using a file that the team can submit. Compare the responses and input tokens before scaling.
Try it on Digitalizando
Start with the example and try your own data. The session stays in your browser.
↑ See the example and stepsHow to read the result
The scenario compares 32 complete pages with 4 selected pages. The number of pages guides the test, and the actual reduction in tokens depends on the content and the layer used. The local workshop is testing the decision without sending files to Google.
Open official service ai.google.dev