Table of Contents

Property CustomMetadata

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

CustomMetadata

Gets or sets custom metadata to attach to all sections from this document.

public MetadataCollection CustomMetadata { get; set; }

Property Value

MetadataCollection

A MetadataCollection containing custom key-value pairs, or null if no custom metadata is specified.

Examples

var metadata = new DocumentMetadata(attachment, id: "report-001");

// Add custom metadata for filtering or categorization
metadata.CustomMetadata = new MetadataCollection
{
    { "author", "Jane Doe" },
    { "department", "Engineering" },
    { "version", "2.0" }
};

Remarks

Custom metadata fields are merged with the standard document metadata (ID, name, page number, source URI) for each section. Use this to add domain-specific attributes such as author, category, version, creation date, or any other properties relevant to your application.

These fields are stored in partition metadata and can be accessed when processing query results.

Share