Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Building Blocks & Utilities

Building Blocks & Utilities

Score Text Quality with Hugging Face Models Sub-Workflow

When called by another workflow, it sends text to Hugging Face models to get performance and preference scores and returns the combined scores.

What it does

## Sub-Workflow Setup: Text Scoring Models To use the scoring sub-workflow, you’ll need to deploy two Hugging Face regression models as inference endpoints: 1. Animal Advocate Preference Prediction (Longform) 2. Text Performance Prediction (Longform) ### Steps: 1. Visit each model’s Hugging Face page. 2. Click the "Deploy" button to create an inference endpoint for each model. 3. Once deployed, copy the Inference Endpoint URL for each model. 4. Add the URLs to the appropriate fields in the n8n sub-workflow where indicated and add your access token to the Hugging Face API credential type for the HTTP nodes. > ⚠️ Make sure your Hugging Face account has the necessary permissions to create inference endpoints and that your access token has API access enabled.

The steps

  1. When Executed by Another Workflow
  2. Get Performance Score
  3. Get Preference Score
  4. Set Performance Score
  5. Get Preference Score2
  6. Set Output
  7. Merge Branches
  8. Create Single Item

Similar automations