Context and Token Budgets for National Key Research and Development Applications: Compare Documents and Locate Differences

National R&D Grants: review context & tokens for document checks. Check source versions, input mappings and the values received by downstream nodes.

What this category's data looks like

National Key R&D Program project applications involve three types of materials: the project application form, the budget application form, and the cooperation agreement. The project application form is written by the lead organization and contains the project name, task breakdown, assessment indicators, and implementation period; the budget application form is jointly prepared by the finance team and the task leaders and contains subject amounts, calculation bases, matching funds, and annual disbursement plans; the cooperation agreement is signed by multiple participating organizations and contains task division, funding allocation, intellectual property ownership, and signature and seal pages. The three types of materials are updated according to batches of the application guidelines, with common parallel versions and supplementary signing receipts. When the materials enter this feature, the project application form and the budget application form serve as the primary comparison sources, and the cooperation agreement serves as the cross-verification source; fields are anchored by name, quantity, date, and signature, and are aligned item by item.

Configuration and implementation checks

This part is executed by application settings (response limit, etc.), which output the length of a single answer and the range of context that can be accommodated. The "discrepancy list" is then completed by the model. The response limit is controlled by a slider for the length of a single answer; if set too low, the answer will be truncated, and if set too high, consumption will increase.

ObjectCheckVerification action
Project application formProject name, number of tasks, and implementation period start and end dates are consistent with the cooperation agreementCheck name, quantity, and date item by item, mark inconsistent fields, and record line numbers
Budget application formSubject amounts, matching funds, and annual disbursement dates correspond to the project application formCompare budget subjects with the project period, and list amount or date discrepancies
Cooperation agreementParticipating organization names, task division, signatures and seals, and receipts are completeCheck the signature page and receipts, and list missing items separately
Context and tokenThe length of a single answer matches the range of context that can be accommodated and the page requirementsIn application settings, check maxResponse and maxContext; for citations, check quoteMaxToken

Three common errors

  • Symptom: the name or quantity of the same task does not match in the two materials. Cause: versions are not synchronized; one party still uses the old draft, and fields were not updated with the latest application form.
  • Symptom: budget subject amounts are inconsistent with the dates in the project application form. Cause: preparation and review belong to different stages, and changes were not written back to the ledger.
  • Symptom: the cooperation agreement lacks signatures or receipts. Cause: the signing process of participating organizations is not closed-loop, and scanned copies are not aligned with the originals.

How to verify the setup

Feature acceptance: ask a question that requires a long answer, check whether the ending is complete, and confirm that maxResponse and maxContext are set appropriately.

Business test: use one real record to find fields inconsistent with the ledger, form a discrepancy list, submit it to the reviewer for confirmation, and write it back.

  • In application settings, check the position of the response limit slider and confirm that it matches the answer length required by the page.
  • Compare usage between two runs and confirm that the change in single-run usage after adjusting the limit is within expectations.