Class KnowledgeGraphIndex
- Namespace
- FoundationaLLM.Context.Models
- Assembly
- FoundationaLLM.Context.dll
Represents an index for organizing and retrieving information in a knowledge graph.
public class KnowledgeGraphIndex
- Inheritance
-
KnowledgeGraphIndex
- Inherited Members
- Extension Methods
Properties
Nodes
Gets or sets the collection of nodes in the knowledge graph, indexed by their unique identifiers.
public Dictionary<string, KnowledgeGraphIndexNode> Nodes { get; set; }
Property Value
Methods
Create(IEnumerable<KnowledgeEntity>, IEnumerable<KnowledgeRelationship>)
public static KnowledgeGraphIndex Create(IEnumerable<KnowledgeEntity> entities, IEnumerable<KnowledgeRelationship> relationships)
Parameters
entities
IEnumerable<KnowledgeEntity>relationships
IEnumerable<KnowledgeRelationship>