Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 777 Bytes

File metadata and controls

32 lines (22 loc) · 777 Bytes

LLM Reranking

GPT/Claude-powered scoring for reranking.

LLM 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
);

Learn More

For detailed documentation on LLM reranking, model configuration, cost optimization, and prompt engineering, visit:

LLM Reranking Documentation

Related Topics