import { crossEncoderReranker } from './cross-encoder.js';
import { llmReranker } from './llm.js';
const REGISTRY = {
    'cross-encoder': crossEncoderReranker,
    llm: llmReranker,
};
export function getReranker(name) {
    if (!name)
        return null;
    const fn = REGISTRY[name];
    if (!fn) {
        throw new Error(`Unknown reranker: ${name}. Available: ${Object.keys(REGISTRY).join(', ')}`);
    }
    return fn;
}
//# sourceMappingURL=index.js.map