Agent skill
setfit-few-shot
SetFit few-shot learning for efficient intent classification with minimal data
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/setfit-few-shot
SKILL.md
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?