Class: CohereRerank
Implements
Constructors
new CohereRerank()
new CohereRerank(
topN
):CohereRerank
Constructor for CohereRerank.
Parameters
• topN: CohereRerankOptions
Number of nodes to return.
Returns
Source
packages/core/src/postprocessors/rerankers/CohereRerank.ts:24
Properties
apiKey
apiKey:
null
|string
=null
Source
packages/core/src/postprocessors/rerankers/CohereRerank.ts:16
client
private
client:null
|CohereClient
=null
Source
packages/core/src/postprocessors/rerankers/CohereRerank.ts:18
model
model:
string
="rerank-english-v2.0"
Source
packages/core/src/postprocessors/rerankers/CohereRerank.ts:15
topN
topN:
number
=2
Source
packages/core/src/postprocessors/rerankers/CohereRerank.ts:14