LLMReranker

org.llm4s.reranker.LLMReranker
See theLLMReranker companion class
object LLMReranker

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(client: LLMClient, batchSize: Int, systemPrompt: Option[String]): LLMReranker

Create a new LLM-based reranker.

Create a new LLM-based reranker.

Value parameters

batchSize

Number of documents to score per LLM call (default: 10)

client

LLM client for generating scores

systemPrompt

Custom system prompt (optional)

Attributes

Concrete fields

Default batch size for LLM calls.

Default batch size for LLM calls.

Attributes