KarelDO/xmc.dspy
A modular framework combining LLMs and retrievers for extreme multi-label classification using in-context learning.

Velocity · 7d
+0.5
★ / day
Trend
→steady
star history
The Infer-Retrieve-Rank (IReRa) program orchestrates interactions between pretrained language models and retrieval systems to solve multi-label classification with 10,000+ classes using roughly 50 labeled examples. It leverages DSPy to decouple the orchestration logic, domain-specific prompts, and optimization techniques. The framework supports teacher-student optimization between models like GPT-4 and LLaMA-2.