Class: SimilarityPostprocessor
Implements
Constructors
constructor
• new SimilarityPostprocessor(options?
): SimilarityPostprocessor
Parameters
Name | Type |
---|---|
options? | Object |
options.similarityCutoff? | number |
Returns
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
): 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
Name | Type | Description |
---|---|---|
nodes | NodeWithScore <Metadata >[] | Array of nodes with scores. |