Class KnowledgeRelationship
- Namespace
- FoundationaLLM.Common.Models.Knowledge
- Assembly
- FoundationaLLM.Common.dll
Represents a relationship between two knowledge entities in a knowledge graph.
public class KnowledgeRelationship : KnowledgeRelationshipBase
- Inheritance
-
KnowledgeRelationship
- Inherited Members
- Extension Methods
Constructors
KnowledgeRelationship()
Initializes a new instance of the KnowledgeRelationship class.
public KnowledgeRelationship()
Properties
ChunkIds
Gets or sets the list of chunk identifiers associated with the relationship.
[JsonPropertyName("chunk_ids")]
[JsonPropertyOrder(5)]
public List<string> ChunkIds { get; set; }
Property Value
ConsolidatedDescriptions
Gets a consolidated string of all descriptions, separated by new lines.
[JsonIgnore]
public string ConsolidatedDescriptions { get; }
Property Value
Descriptions
Gets or sets the list of detailed descriptions associated with the relationship.
[JsonPropertyName("descriptions")]
[JsonPropertyOrder(2)]
public List<string> Descriptions { get; set; }
Property Value
DescriptionsHash
Gets or sets the hash of the descriptions, used for change detection.
[JsonPropertyName("descriptions_hash")]
[JsonPropertyOrder(3)]
public string DescriptionsHash { get; set; }
Property Value
ShortDescriptions
Gets or sets the list of short descriptions associated with the relationship.
[JsonPropertyName("short_descriptions")]
[JsonPropertyOrder(1)]
public List<string> ShortDescriptions { get; set; }
Property Value
Strengths
Gets or sets the list of strengths associated with the relationship.
[JsonPropertyName("strengths")]
[JsonPropertyOrder(4)]
public List<int> Strengths { get; set; }
Property Value
SummaryDescription
Gets or sets the summary description of the relationship, which provides a concise overview.
[JsonPropertyName("summary_description")]
[JsonPropertyOrder(6)]
public string? SummaryDescription { get; set; }