Table of Contents

Class RagDocument

Namespace
Mythosia.AI.Rag
Assembly
Mythosia.AI.Rag.Abstractions.dll

Represents a loaded document with its text content and associated metadata.

public class RagDocument
Inheritance
RagDocument
Inherited Members

Constructors

RagDocument()

public RagDocument()

RagDocument(string, string, string)

public RagDocument(string id, string content, string source)

Parameters

id string
content string
source string

Properties

Content

The text content of the document.

public string Content { get; set; }

Property Value

string

Id

Unique identifier for the document.

public string Id { get; set; }

Property Value

string

Metadata

Arbitrary key-value metadata associated with the document (e.g., title, author, date).

public Dictionary<string, string> Metadata { get; set; }

Property Value

Dictionary<string, string>

Source

The source path, URL, or identifier from which this document was loaded.

public string Source { get; set; }

Property Value

string