Context and Token Budgets for Modern Apprenticeships and Employer-Sponsored Classes: Compare Documents and Locate Differences

Apprenticeships: 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

This page focuses on material verification and discrepancy localization in modern apprenticeship and order class management, involving three types of materials: school-enterprise cooperation agreements, order class training plans, and master-apprentice mentoring records. School-enterprise cooperation agreements are signed by both the school and the enterprise, and include the cooperation period, number of positions, signatures, and seals; order class training plans are prepared by the teaching department, and include course names, credit hours, and class start dates; master-apprentice mentoring records are filled in by the mentoring master, and include the apprentice's name, mentoring period, signature, and receipt. Materials are updated by semester or training cycle, and when versions iterate, the old version not being synchronized will create discrepancies. After these three types of materials enter this function, each participates as an independent object in item-by-item comparison of names, quantities, dates, and signatures, locating field conflicts for the same record in two materials and providing the original basis for the discrepancy list.

Configuration and implementation checks

This part is executed by application settings (response limit, etc.), outputting the length of a single answer and the range of context it can accommodate. The "discrepancy list" is then completed by the model. The response limit uses a slider to control the length of a single answer; if set too low, the answer will be truncated, and if set too high, consumption will increase; the quoted content budget is controlled by quoteMaxToken, and is checked separately from the number of quotes.

ObjectCheckVerification action
School-enterprise cooperation agreementThe name, quantity, date, and signature must be consistent with the order class training planCheck the number of positions in the agreement against the enrollment number in the training plan, inspect the signature and seal positions of both parties, and record inconsistent fields
Order class training planThe course names, credit hours, and class start date must correspond to the master-apprentice mentoring recordsCompare the course names in the plan with the mentoring content in the mentoring records, and check the class start date against the mentoring start date
Master-apprentice mentoring recordThe apprentice's name, mentoring period, signature, and receipt must match the agreement and planCheck the apprentice's name in the mentoring record against the agreement roster, verify the mentoring period against the training plan cycle, and confirm that the signature and receipt are complete
Response limitMatches the answer length required by the pageIn the application settings, check the switch and slider position, and confirm whether the values of maxResponse and maxContext meet the needs of long answers

Three common errors

  • Phenomenon: the same apprentice's name is written differently in the agreement and the mentoring record. Cause: the name format was not unified during entry, causing the name fields to fail to match.
  • Phenomenon: the number of courses in the order class training plan is inconsistent with the number of positions in the agreement. Cause: the version was not synchronized, and the old plan is still in use.
  • Phenomenon: the master-apprentice mentoring record lacks a signature or receipt. Cause: the signature was not supplemented in time after mentoring ended, and the material archiving is incomplete.

How to verify the setup

This function acceptance: ask a question that requires a long answer, see whether the ending is complete, confirm that the response limit slider position matches the answer length, and check whether maxResponse is truncated.

Business test: use a real record to find fields inconsistent with the ledger, compare the names, quantities, and dates in the agreement, plan, and mentoring record, record the discrepancies, and submit them to the reviewer for confirmation.

  • In the application settings, check the response limit switch and slider position, confirm the values of maxResponse and maxContext, and avoid long answers being truncated.
  • Compare the fields of the school-enterprise cooperation agreement, order class training plan, and master-apprentice mentoring record item by item, and fill in the discrepancies in names, quantities, dates, and signatures into the discrepancy list.