setfit-few-shot

Solid

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

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
52
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills