CohereReranker

org.llm4s.reranker.CohereReranker
See theCohereReranker companion class

Attributes

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

Members list

Value members

Concrete methods

Create a Cohere reranker from config.

Create a Cohere reranker from config.

Value parameters

config

Provider configuration

Attributes

Returns

Cohere reranker instance

def apply(apiKey: String, model: String, baseUrl: String): CohereReranker

Create a Cohere reranker from individual parameters.

Create a Cohere reranker from individual parameters.

Value parameters

apiKey

Cohere API key

baseUrl

API base URL (default: https://api.cohere.ai)

model

Reranking model (default: rerank-english-v3.0)

Attributes

Returns

Cohere reranker instance

Concrete fields

val DEFAULT_BASE_URL: String

Default Cohere API base URL

Default Cohere API base URL

Attributes

val DEFAULT_MODEL: String

Default reranking model

Default reranking model

Attributes