← all repositories

KarelDO/xmc.dspy

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

453 stars Python AgentsRAG · Search
xmc.dspy
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.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.