Table of Contents

Class KnowledgeUnit

Namespace
FoundationaLLM.Common.Models.ResourceProviders.Context
Assembly
FoundationaLLM.Common.dll

Represents a knowledge unit managed by the FoundationaLLM.Context resource provider.

public class KnowledgeUnit : ResourceBase
Inheritance
KnowledgeUnit
Inherited Members
Extension Methods

Constructors

KnowledgeUnit()

Initializes a new instance of the KnowledgeUnit class and sets its type to KnowledgeUnit.

public KnowledgeUnit()

Properties

HasKnowledgeGraph

Gets or sets a flag that indicates whether the knowledge unit also has a knowledge graph.

[JsonPropertyName("has_knowledge_graph")]
public bool HasKnowledgeGraph { get; set; }

Property Value

bool

KnowledgeGraphVectorDatabaseObjectId

Gets or sets the object identifier of the vector database used to store knowledge graph embeddings.

[JsonPropertyName("knowledge_graph_vector_database_object_id")]
public string? KnowledgeGraphVectorDatabaseObjectId { get; set; }

Property Value

string

Remarks

The vector store identifier within the vector database will always be the name of the knowledge unit.

VectorDatabaseObjectId

Gets or sets the object identifier of the vector database associated with the knowledge unit.

[JsonPropertyName("vector_database_object_id")]
public required string VectorDatabaseObjectId { get; set; }

Property Value

string

VectorStoreId

Gets or sets the object identifier of the vector store associated with the knowledge unit.

[JsonPropertyName("vector_store_id")]
public string? VectorStoreId { get; set; }

Property Value

string

Remarks

If this value is null, the knowledge source queries must specify the vector store identifier explicitly.