Human in the loop(HITL)
This page explains how to set up Human in the loop(HITL) ETL.
Before following the steps in this guide, you must first enable Human in the Loop functionality in your workflow configuration. Follow the detailed instructions in Human in the Loop Workflow to configure HITL settings, including rules and approval settings, in your workflow's destination connector.
-
Once the Prompts are constructed, export the prompt studio project as a tool, as shown below.
-
Create the Workflow, as shown here
-
Create the ETL using the shortcut option from workflow (or) Click on ETL Pipelines-->New ETL Pipelines, as shown below
- Once the ETL CRON timing is set, it will automatically trigger the jobs and push the results to
Human Quality Review Queue
- Once the ETL CRON timing is set, it will automatically trigger the jobs and push the results to
-
Invite the users based on the rights.
- Unstract admin - Have full access to Human Quality review
- Unstract User - Does not have access to Human Quality review
- Unstract Review - Can only review the documents in Human Quality Review.
- Unstract Supervisor - Can Review and Approve the documents in HQR.
-
Check the results in the Human Quality Review.
- Select the project and click on
Fetch Next
to see the document and its results.Click onQueue Details
to see the queue status.
- Single Click on the result to highlight the same in the document.
- Double-click on the result, to edit it
- Click on
Finish Review
to send the documents to approve queue.
- Select the project and click on
-
All the reviewed files will move into Approval Queue. The Approver can do the same highlight of result and edit it.
-
In Workflows, if "After approval send result to(point no 7)" is set as "Queue", then get the results using API endpoint.Use the below curl command.
curl --location 'https://us-central.unstract.com/mr/api/<Replace with your organiztion id>/approved/result/<Replace With your class id>/' \
--header 'Authorization: Bearer <Replace with your api key>'Organization id
: The organization id will be present in the ETL endpoint, refer below screenshot
API key
: Follow the steps shown in screenshot to create an API key for Human Review
Class id
: Click on Profile Icon-->Download and Sync Manager to get the class id.
-
In Workflows, if "After approval send result to(point no 7)" is set as "Destination DB", then result will be sent directly to Destination DB