Setfit few shot
Skill a5c-ai/babysitter/library/specializations/ai-agents-conversational/skills/setfit-few-shot
SetFit few-shot learning for efficient intent classification with minimal dataFrom its SKILL.md
npx -y skills add a5c-ai/babysitter --skill setfit-few-shotAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.5 KB, 217 tokens by cl100k_base, as published. Nobody here has run it
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
- Few Examples: 8-16 examples per class
- No Prompts: No prompt engineering needed
- Fast Training: Minutes vs hours
- 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
What ships with it: 1 file
480 B alongside SKILL.md
- README.md480 B