KarelDO/xmc.dspy

In-Context Learning for eXtreme Multi-Label Classification (XMC) using only a handful of examples.

32
/ 100
Emerging

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.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 13 / 25

How are scores calculated?

Stars

449

Forks

24

Language

Python

License

MIT

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.