Partager via


MemoryQueryResult.FromMemoryRecord(MemoryRecord, Double) Method

Definition

Creates instance of MemoryQueryResult based on MemoryRecord and search relevance.

public static Microsoft.SemanticKernel.Memory.MemoryQueryResult FromMemoryRecord (Microsoft.SemanticKernel.Memory.MemoryRecord record, double relevance);
static member FromMemoryRecord : Microsoft.SemanticKernel.Memory.MemoryRecord * double -> Microsoft.SemanticKernel.Memory.MemoryQueryResult
Public Shared Function FromMemoryRecord (record As MemoryRecord, relevance As Double) As MemoryQueryResult

Parameters

record
MemoryRecord

Instance of MemoryRecord.

relevance
Double

Search relevance, from 0 to 1, where 1 means perfect match.

Returns

Applies to