Skip to main content

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:

  1. First, open any Workflow project in which you want to enable SinglePass Extraction.
  2. Select the exported Prompt Studio project Tool from the Workflow steps.
  3. Enable the SinglePass Extraction checkbox from the Tool Settings panel on the right.

img Enable SinglePass Extraction

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.