DocumentationNeuronDB Documentation
Documentation Branch: You are viewing documentation for the main branch (3.0.0-devel). Select a branch to view its documentation:

LLM Reranking

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