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
- When Executed by Another Workflow
- Get Performance Score
- Get Preference Score
- Set Performance Score
- Get Preference Score2
- Set Output
- Merge Branches
- Create Single Item
Similar automations
Chatbots & Messaging BotsChat with Mistral-7B Through Hugging Face3 stepsContent Writing & GenerationSave Hugging Face Papers to Notion with OpenAI Summaries11 stepsContent Writing & GenerationSummarize Hugging Face Papers into Notion with OpenAI11 stepsDocuments, PDF & OCRSummarize Tenant Screening with a Hugging Face RAG Agent10 steps