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

InterfacesAPI SpecSections

API Spec Designed

  • GET/api/extraction/v1/jobs/{jobId}/enrichment

    Web-sourced vendor metadata with citations for a job. Signed in

    → 200 {data: [{name, value, source_urls[], retrieved_at}]}.

  • GET/api/review/v1/tasks/{taskId}/chat/messages

    The correction chat history for a task. Signed in

    → 200 {data: [Message]}.

  • POST/api/review/v1/tasks/{taskId}/chat/messages

    Ask the correction agent to fix data in plain language. Signed in

    Body {text} → 201 {message, proposals: [{id, field, old_value, new_value, reason}]}. Nothing changes until a proposal is applied.

  • POST/api/review/v1/tasks/{taskId}/proposals/{proposalId}/apply

    Apply a proposed change. Signed in

    → 200 {field}; audited with source: chat. Errors: 409 if the field changed since the proposal.

  • POST/api/review/v1/tasks/{taskId}/proposals/{proposalId}/reject

    Reject a proposed change. Signed in

    → 200 {proposal}.

  • POST/api/review/v1/tasks/{taskId}/proposals/{proposalId}/undo

    Undo an applied change. Signed in

    → 200 {field}. Errors: 409 if the field was edited again afterwards.

Notes

  • REVIEW-V2-E11-02 No new endpoints. DocFlow adds enrichment values to the review task as fields of kind: enrichment (with source_urls); accept or reject uses PATCH /api/review/v1/tasks/{taskId}/fields/{fieldId} (REVIEW-V1-E4-02).

Coming Soon...

Full inputs, constraints, error codes and sample requests and responses for each endpoint will appear here when this module's design is finalized.