Nhảy tới nội dung

Class: SimilarityPostprocessor

Implements

Constructors

constructor

new SimilarityPostprocessor(options?): SimilarityPostprocessor

Parameters

NameType
options?Object
options.similarityCutoff?number

Returns

SimilarityPostprocessor

Defined in

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

Properties

similarityCutoff

Optional similarityCutoff: number

Defined in

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

Methods

postprocessNodes

postprocessNodes(nodes): NodeWithScore<Metadata>[]

Parameters

NameType
nodesNodeWithScore<Metadata>[]

Returns

NodeWithScore<Metadata>[]

Implementation of

BaseNodePostprocessor.postprocessNodes

Defined in

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