org.llm4s.reranker.CohereReranker
See theCohereReranker companion object
class CohereReranker(config: RerankProviderConfig) extends Reranker
Cohere Rerank API implementation.
Calls POST https://api.cohere.ai/v1/rerank with:
- model: reranking model name (e.g., "rerank-english-v3.0")
- query: search query
- documents: array of document strings
- top_n: number of results to return
- return_documents: whether to include document text
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
Members list
In this article