MemoryQueryResult.FromMemoryRecord(MemoryRecord, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.