Partager via


MemoryQueryResult Class

Definition

Copy of metadata associated with a memory entry.

public class MemoryQueryResult
type MemoryQueryResult = class
Public Class MemoryQueryResult
Inheritance
MemoryQueryResult

Constructors

MemoryQueryResult(MemoryRecordMetadata, Double, Nullable<ReadOnlyMemory<Single>>)

Create a new instance of MemoryQueryResult

Properties

Embedding

Nullable embedding associated with the metadata returned for by a query.

Metadata

Whether the source data used to calculate embeddings are stored in the local storage provider or is available through an external service, such as web site, MS Graph, etc.

Relevance

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

Methods

FromMemoryRecord(MemoryRecord, Double)

Creates instance of MemoryQueryResult based on MemoryRecord and search relevance.

Applies to