Table of Contents

Class RagChunk

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

Represents a text chunk produced by an ITextSplitter.

public class RagChunk
Inheritance
RagChunk
Inherited Members

Constructors

RagChunk()

public RagChunk()

RagChunk(string, string, string, int)

public RagChunk(string id, string documentId, string content, int index)

Parameters

id string
documentId string
content string
index int

Properties

Content

The text content of this chunk.

public string Content { get; set; }

Property Value

string

DocumentId

The parent document identifier.

public string DocumentId { get; set; }

Property Value

string

Id

Unique identifier for this chunk.

public string Id { get; set; }

Property Value

string

Index

Zero-based index of this chunk within the parent document.

public int Index { get; set; }

Property Value

int

Metadata

Inherited and chunk-specific metadata.

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

Property Value

Dictionary<string, string>