Deploying SinglePass Extraction
We discussed earlier in Developing and verifying SinglePass Extraction that while in Prompt Studio, you're only verifying if SinglePass Extraction is doing a good job of the required structured extraction. SinglePass Extraction needs to be deployed as part of API Deployments, ETL Pipelines, Human Quality Review or Task Pipelines workflow. In this section, let's see how, when deploying one of the previously mentioned types of workflows, we can enable SinglePass Extraction.
To understand this section fully, you need to already know how Workflows work in Unstract.
Enabling SinglePass Extraction
It's pretty simple, really:
- First, open any Workflow project in which you want to enable SinglePass Extraction.
- Select the exported Prompt Studio project Tool from the Workflow steps.
- Enable the SinglePass Extraction checkbox from the Tool Settings panel on the right.
Once this is done, this workflow has SinglePass Extraction enabled. Irrespective of whether it's an API, ETL Pipeline, Human Quality Review or Task Pipeline, when the extraction actually occurs, all your prompts will be combined into one using the default, configured LLM and the final prompt is executed against the context exactly once.