Table of Contents

Class RetrievalHit

Namespace
PnP.Core.Model.Copilot.Public.DTO
Assembly
PnP.Core.dll

Represents a single result within the list of retrieval results.

public class RetrievalHit
Inheritance
RetrievalHit
Inherited Members

Properties

Extracts

An array of text extracts extracted from the document for Retrieval-Augmented Generation. Currently, only one text snippet is extracted.

[JsonPropertyName("extracts")]
public List<RetrievalExtract> Extracts { get; set; }

Property Value

List<RetrievalExtract>

ResourceMetadata

The requested SharePoint and Microsoft 365 Copilot connectors metadata from the request payload (empty if not applicable).

[JsonPropertyName("resourceMetadata")]
public Dictionary<string, object>? ResourceMetadata { get; set; }

Property Value

Dictionary<string, object>

ResourceType

The resource type of the item. Possible values: site, list, listItem, externalItem, drive, driveItem ,unknownFutureValue

[JsonPropertyName("resourceType")]
public string ResourceType { get; set; }

Property Value

string

SensitivityLabelInfo

A JSON object with information about the document's sensitivity label.

[JsonPropertyName("sensitivityLabelInfo")]
public SensitivityLabelInfo? SensitivityLabelInfo { get; set; }

Property Value

SensitivityLabelInfo

WebUrl

The URL of the item in which the extract was retrieved.

[JsonPropertyName("webUrl")]
public string WebUrl { get; set; }

Property Value

string