GPT/Claude-powered scoring for reranking.
Rerank using LLM:
-- LLM reranking
SELECT idx, score FROM rerank_llm(
'What is artificial intelligence?', -- query
ARRAY[ -- candidates
'AI definition text',
'ML explanation text'
],
'gpt-4', -- model
3 -- top K
);For detailed documentation on LLM reranking, model configuration, cost optimization, and prompt engineering, visit:
- Cross-Encoder - Neural reranking
- Ensemble - Combine rerankers