RerankRequest

org.llm4s.reranker.RerankRequest
final case class RerankRequest(query: String, documents: Seq[String], topK: Option[Int], returnDocuments: Boolean)

Request to rerank documents against a query.

Value parameters

documents

The documents to rerank

query

The query to rank documents against

returnDocuments

Whether to return document content in results

topK

Maximum results to return (None = all)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product