KarelDO/xmc.dspy
In-Context Learning for eXtreme Multi-Label Classification (XMC) using only a handful of examples.
Implements a three-stage pipeline (Infer-Retrieve-Rank) that combines language models with dense retrievers to handle extreme multi-label classification without finetuning. Built on DSPy's modular framework, it enables teacher-student optimization where expensive models (GPT-4) generate demonstrations that improve cheaper student models (Llama-2), with configurable cost-performance tradeoffs. Supports multiple retrievers, LM backends (OpenAI and local via TGI), and custom signatures for domain adaptation, with reproducible cached inference across 10K+ label datasets.
449 stars. No commits in the last 6 months.
Stars
449
Forks
24
Language
Python
License
MIT
Category
Last pushed
Feb 13, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/KarelDO/xmc.dspy"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
NVlabs/vibetensor
Our first fully AI generated deep learning system
figmentapp/figment
Figment makes creative AI fun and accessible.
0H4S/My-Prompt
Prompt Manager
michael-borck/converse-python-partner-ai
Teaches intentional prompting methodology for treating AI as a thinking partner in development.
SDR-Assistant/SDR-Assistant.github.io
An AI SDR that automates research, pitch drafting and target generation