본문으로 건너뛰기

Class: SimilarityPostprocessor

Implements

Constructors

new SimilarityPostprocessor()

new SimilarityPostprocessor(options?): SimilarityPostprocessor

Parameters

options?

options.similarityCutoff?: number

Returns

SimilarityPostprocessor

Source

packages/llamaindex/src/postprocessors/SimilarityPostprocessor.ts:7

Properties

similarityCutoff?

optional similarityCutoff: number

Source

packages/llamaindex/src/postprocessors/SimilarityPostprocessor.ts:5

Methods

postprocessNodes()

postprocessNodes(nodes): Promise <NodeWithScore <Metadata>[]>

Send message along with the class's current chat history to the LLM. This version returns a promise for asynchronous operation.

Parameters

nodes: NodeWithScore <Metadata>[]

Array of nodes with scores.

Returns

Promise <NodeWithScore <Metadata>[]>

Implementation of

BaseNodePostprocessor . postprocessNodes

Source

packages/llamaindex/src/postprocessors/SimilarityPostprocessor.ts:11