Skip to content

JinaAIReranker

Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:16

  • BaseNodePostprocessor

new JinaAIReranker(init?): JinaAIReranker

Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:21

Partial<JinaAIReranker>

JinaAIReranker

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


optional apiKey: string = undefined

Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:19

rerank(query, documents, topN): Promise<JinaAIRerankerResult[]>

Defined in: .build/typescript/packages/llamaindex/src/postprocessors/rerankers/JinaAIReranker.ts:33

string

string[]

undefined | number

Promise<JinaAIRerankerResult[]>


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.

NodeWithScore<Metadata>[]

Array of nodes with scores.

MessageContent

Optional query string.

Promise<NodeWithScore<Metadata>[]>

BaseNodePostprocessor.postprocessNodes