Skip to content
Back to skills

Setfit Few Shot

ASecurity

SetFit few-shot learning for efficient intent classification with minimal data

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 7, 2026
ai-agentsbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add a5c-ai/babysitter --skill setfit-few-shot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setfit Few Shot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Setfit Few Shot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-setfit-few-shot/badge)](https://www.skillsdirectory.com/skills/a5c-ai-setfit-few-shot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: setfit-few-shot
description: SetFit few-shot learning for efficient intent classification with minimal data
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep
---

# SetFit Few-Shot Skill

## Capabilities

- Train SetFit models with few examples per class
- Configure contrastive learning settings
- Implement efficient classification pipelines
- Design few-shot training strategies
- Set up model evaluation
- Deploy lightweight classifiers

## Target Processes

- intent-classification-system

## Implementation Details

### SetFit Advantages

1. **Few Examples**: 8-16 examples per class
2. **No Prompts**: No prompt engineering needed
3. **Fast Training**: Minutes vs hours
4. **Small Models**: Sentence transformer base

### Training Process

- Contrastive fine-tuning of embeddings
- Classification head training
- Iterative sampling strategies

### Configuration Options

- Base sentence transformer model
- Number of training examples
- Contrastive learning epochs
- Classification head architecture
- Evaluation metrics

### Best Practices

- Diverse few-shot examples
- Balance class examples
- Use appropriate base model
- Validate on held-out data

### Dependencies

- setfit
- sentence-transformers

Files in this skill

  • README.md480 B
  • SKILL.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…