KnowledgeGraphResult<T>

Models & Types · AiDotNet.Models.Results

Contains the results of knowledge graph processing, including trained embeddings, community structure, and link prediction evaluation.

For Beginners

After building a model with ConfigureKnowledgeGraph(), this result contains everything that was computed:

  • EmbeddingTrainingResult: Training statistics if embeddings were trained
  • TrainedEmbedding: The trained embedding model for scoring triples
  • CommunityStructure: Detected communities if Leiden was run
  • CommunitySummaries: Human-readable descriptions of each community
  • LinkPredictionEvaluation: Quality metrics if link prediction was evaluated
  • EnhancedGraphRAG: The configured GraphRAG instance for querying

Constructors

Constructor Summary
KnowledgeGraphResult()

Properties

Property Summary
EnhancedGraphRAG<T> EnhancedGraphRAG { get; set; } The configured EnhancedGraphRAG instance for querying.
IKnowledgeGraphEmbedding<T> TrainedEmbedding { get; set; } The trained embedding model, if training was performed.
KGEmbeddingTrainingResult EmbeddingTrainingResult { get; set; } Training result from embedding model training, if embeddings were trained.
LeidenResult CommunityStructure { get; set; } Community detection results from the Leiden algorithm, if community detection was run.
LinkPredictionEvaluation LinkPredictionEvaluation { get; set; } Link prediction evaluation metrics, if evaluation was performed.
List<CommunitySummary> CommunitySummaries { get; set; } Human-readable summaries of detected communities.