Class RagDocument
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
Properties
Content
The text content of the document.
public string Content { get; set; }
Property Value
Id
Unique identifier for the document.
public string Id { get; set; }
Property Value
Metadata
Arbitrary key-value metadata associated with the document (e.g., title, author, date).
public Dictionary<string, string> Metadata { get; set; }
Property Value
Source
The source path, URL, or identifier from which this document was loaded.
public string Source { get; set; }