Utils

load_dotenv()
True
fw()
<openai.OpenAI>
ranker = Reranker('accounts/fireworks/models/qwen3-reranker-8b')
query = "India's performance in international sports and current economic outlook"

docs = ['India clinches 6th Under-19 World Cup title with a dominant 100-run victory over England', 
        "RBI keeps repo rate unchanged at 5.25% while maintaining 'neutral' policy stance",
        'Vaibhav Sooryavanshi smashes a commanding 175 to lead India’s victory on the grand stage',
        'Olympic flame arrives in Milan for 2026 Winter Games featuring star-studded guest list',
        'Singapore woman fined ₹2 lakh for "one bad habit"—here is why']
Reranker().rank(query, docs)
(#5) [0,2,1,3,4]