OpenParable
Skip to content
← Back to skills

Setfit Few Shot

Development
setfit-few-shot

Setfit Few Shot is an Agent Skill for development published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/ai-agents-conversational/skills/setfit-few-shot/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/setfit-few-shot, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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