a5c-ai/babysitter / library/specializations/ai-agents-conversational/skills/setfit-few-shot
setfit-few-shot
VerifiedSetFit few-shot learning for efficient intent classification with minimal data
SKILL.md
View on GitHub---
name: setfit-few-shot
description: SetFit few-shot learning for efficient intent classification with minimal data
allowed-tools:
- Read
- Write
- Edit
- Bash
- Glob
- Grep
graph:
domains: [domain:software-engineering]
specializations: [specialization:ai-agents-conversational]
skillAreas: [skill-area:ml-fine-tuning, skill-area:natural-language-processing]
roles: [role:ml-engineer, role:backend-engineer]
workflows: [workflow:ml-model-lifecycle, workflow:feature-development]
---
# 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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |