JinaAIReranker
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:16
Implements
Section titled “Implements”BaseNodePostprocessor
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JinaAIReranker(
init?
):JinaAIReranker
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:21
Parameters
Section titled “Parameters”Partial
<JinaAIReranker
>
Returns
Section titled “Returns”JinaAIReranker
Properties
Section titled “Properties”model:
string
="jina-reranker-v1-base-en"
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:17
optional
topN:number
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:18
apiKey?
Section titled “apiKey?”
optional
apiKey:string
=undefined
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:19
Methods
Section titled “Methods”rerank()
Section titled “rerank()”rerank(
query
,documents
,topN
):Promise
<JinaAIRerankerResult
[]>
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:33
Parameters
Section titled “Parameters”string
documents
Section titled “documents”string
[]
undefined
| number
Returns
Section titled “Returns”Promise
<JinaAIRerankerResult
[]>
postprocessNodes()
Section titled “postprocessNodes()”postprocessNodes(
nodes
,query?
):Promise
<NodeWithScore
<Metadata
>[]>
Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:65
Send message along with the class’s current chat history to the LLM. This version returns a promise for asynchronous operation.
Parameters
Section titled “Parameters”NodeWithScore
<Metadata
>[]
Array of nodes with scores.
query?
Section titled “query?”MessageContent
Optional query string.
Returns
Section titled “Returns”Promise
<NodeWithScore
<Metadata
>[]>
Implementation of
Section titled “Implementation of”BaseNodePostprocessor.postprocessNodes