

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Re-ranking
incomplete
2: LLMs for Re-Ranking
incomplete
3: LLM Batch Re-Ranking
incomplete
4: Cross-Encoder Re-Ranking
incomplete
This lesson's interactive features are locked, please to keep using them
The massive training data a good LLM goes through will typically understand some nuance that traditional scoring misses:
LLMs are slow and expensive to run on large data sets, but their built-in knowledge, reasoning, and short-term memory make them great for working with a small set of full documents.
Implement LLM-based re-ranking for RRF search.
f"""Rate how well this movie matches the search query.
Query: "{query}"
Movie: {doc.get("title", "")} - {doc.get("document", "")}
Consider:
- Direct relevance to query
- User intent (what they're looking for)
- Content appropriateness
Rate 0-10 (10 = perfect match).
Output ONLY the number in your response, no other text or explanation.
Score:"""
Re-ranking top 3 results using individual method...
Reciprocal Rank Fusion Results for 'family movie about bears in the woods' (k=60):
1. The Berenstain Bears' Christmas Tree
Re-rank Score: 10.000/10
RRF Score: 0.027
BM25 Rank: 37, Semantic Rank: 1
It is Christmas Eve in Bear Country and the Bear Family is decorating for Christmas. Now the only th...
2. Goldilocks and the Three Bears
Re-rank Score: 9.000/10
RRF Score: 0.023
BM25 Rank: 2, Semantic Rank: 91
In Southey's tale, three anthropomorphic bears – "a Little, Small, Wee Bear, a Middle-sized Bear, an...
3. The Country Bears
Re-rank Score: 9.000/10
RRF Score: 0.023
BM25 Rank: 25, Semantic Rank: 32
Beary Barrington is a young bear who has been raised by a human family and struggles with his identi...
Free models can be inconsistent: if a model refuses, returns malformed output, or errors, just retry. Because openrouter/free routes to a different model on each request, a retry often succeeds. You can also pin a specific :free model from the models page. You'll never lose armor/sharpshooter from a model failure.
Submit the CLI tests.