Table of Contents

Class KnowledgeEntity

Namespace
FoundationaLLM.Common.Models.Knowledge
Assembly
FoundationaLLM.Common.dll

Represents a knowledge entity used in a knowledge graph.

public class KnowledgeEntity : KnowledgeEntityBase
Inheritance
KnowledgeEntity
Inherited Members
Extension Methods

Constructors

KnowledgeEntity()

Initializes a new instance of the KnowledgeEntity class.

public KnowledgeEntity()

Properties

ChunkIds

Gets or sets the list of text chunk identifiers associated with the entity.

[JsonPropertyName("chunk_ids")]
[JsonPropertyOrder(3)]
public List<string> ChunkIds { get; set; }

Property Value

List<string>

ConsolidatedDescriptions

Gets a consolidated string of all descriptions, separated by new lines.

[JsonIgnore]
public string ConsolidatedDescriptions { get; }

Property Value

string

Descriptions

Gets or sets the list of descriptions associated with the entity.

[JsonPropertyName("descriptions")]
[JsonPropertyOrder(1)]
public List<string> Descriptions { get; set; }

Property Value

List<string>

DescriptionsHash

Gets or sets the hash of the descriptions, used for change detection.

[JsonPropertyName("descriptions_hash")]
[JsonPropertyOrder(2)]
public string DescriptionsHash { get; set; }

Property Value

string

SummaryDescription

Gets or sets the summary description of the entity, which provides a concise overview.

[JsonPropertyName("summary_description")]
[JsonPropertyOrder(4)]
public string? SummaryDescription { get; set; }

Property Value

string