Products · LLM Extraction V2 · Human Review V2

Web enrichment and chat correction

Add cited context from the web, and fix data by describing the change in plain language.

Planned, not builtModule 12 of 15

ProductRequirement EPICSections

Requirement EPIC

Epic
MVP2 · E11 · Metadata enrichment and chat correction
Goal
add useful, cited context from the web and let users fix data in plain language, safely.
Stories in this module
3

EXTRACTION-V2-E11-01 Research agent

  • AC1For each document, the agent searches the web (Claude web search tool) using only vendor_name, vendor_address and vendor_tax_id (an allow-list).
  • AC2It returns vendor_website, vendor_address_normalized, vendor_category and vendor_registered (yes/no/unknown). Each has source_urls[] and retrieved_at, and a value without a source is dropped.
  • AC3Amounts, bill-to details and line items are never included in queries, enforced in code and covered by a unit test.

Evals: ENR-1 citation coverage, ENR-2 accuracy, ENR-3 PII leakage, ENR-4 abstention.

REVIEW-V2-E11-02 Enrichment review UI

  • AC1Enrichment appears in a separate "Metadata" panel with source links. Each value can be accepted or rejected.
  • AC2Only accepted values go into the output JSON metadata.enrichment.

REVIEW-V2-E11-03 Chat correction agent

As Priya, I want to type "line 3 quantity should be 12" and have it fixed.

  • AC1A chat panel on the review page sends messages to an agent whose only write tools are propose_field_update(field, new_value, reason) and propose_line_item_update(index, field, new_value, reason).
  • AC2Proposed changes appear as a diff (old → new) with Apply and Reject buttons. Nothing changes without Apply.
  • AC3Applied changes are audited with source: chat, rule checks run again, and each can be undone.
  • AC4The agent refuses requests outside its scope (e.g. "email this to my boss") and says why.

Evals: CHAT-1 correct application, CHAT-2 no unrequested changes, CHAT-3 scope refusal, CHAT-4 ambiguity handling.