Prototype: votes, saves, and profiles aren't stored on this hosted preview yet. No real accounts, and no emails or texts. Privacy

Recipes / Review & lead classification

Sort customer messages with SetFit and Argilla (HF Cookbook)

A small sentence-transformers model that suggests labels (for example intents) for text, trained zero-shot with SetFit and reviewed in Argilla.

  • No license flags found

Source: HF Cookbook ↗ · by Berenstein and Sara Han Díaz · last updated Jan 9, 2026

What a local business could build with it

Tag incoming reviews, emails or web leads as 'complaint', 'quote request', 'booking' and so on, with a person checking suggestions before they're trusted.

How to run it

Commands are copied from the source, unchanged except where a notebook cell is cut at 40 lines (marked in the code). Placeholders like <you> are the source's own. Credit goes to the authors named on each block.

Install (as written in the notebook)

!pip install argilla !pip install setfit==1.0.3 transformers==4.40.2 huggingface_hub==0.23.5

From HF Cookbook, labelling_feedback_setfit ↗

Set up training

def train_model(question_name, template, multi_label=False): train_dataset = get_templated_dataset( candidate_labels=dataset.questions[question_name].labels, sample_size=8, template=template, multi_label=multi_label, ) # Train a model using the training dataset we just built if multi_label: model = SetFitModel.from_pretrained( "sentence-transformers/all-MiniLM-L6-v2", multi_target_strategy="one-vs-rest", ) else: model = SetFitModel.from_pretrained("sentence-transformers/all-MiniLM-L6-v2") trainer = Trainer(model=model, train_dataset=train_dataset) trainer.train() return model

From HF Cookbook, labelling_feedback_setfit ↗

Licenses

No flags: every license we found for this recipe is permissive (Apache-2.0, MIT, BSD, CC BY or similar). Still read each one.

PartLicense, as the source or Hub states it
CodeApache-2.0 (huggingface/cookbook)
Base modelApache-2.0
DatasetCC BY 4.0

Checked against the Hugging Face API and each repo on December 4, 2026. A grouping like “$10M revenue cap” is our shorthand, not legal advice.