28 references to IngestionDocumentHeader
Microsoft.Extensions.DataIngestion.Markdig (1)
MarkdownParser.cs (1)
96HeadingBlock heading => new IngestionDocumentHeader(elementMarkdown)
Microsoft.Extensions.DataIngestion.MarkItDown (1)
src\Libraries\Microsoft.Extensions.DataIngestion.Markdig\MarkdownParser.cs (1)
96HeadingBlock heading => new IngestionDocumentHeader(elementMarkdown)
Microsoft.Extensions.DataIngestion.Tests (26)
Chunkers\HeaderChunkerTests.cs (16)
23new IngestionDocumentHeader("Header 1") { Level = 1 }, 24new IngestionDocumentHeader("Header 1_1") { Level = 2 }, 26new IngestionDocumentHeader("Header 1_1_1") { Level = 3 }, 29new IngestionDocumentHeader("Header 1_1_2") { Level = 3 }, 32new IngestionDocumentHeader("Header 1_2") { Level = 2 }, 34new IngestionDocumentHeader("Header 1_2_1") { Level = 3 }, 64new IngestionDocumentHeader("Header A") { Level = 1 }, 65new IngestionDocumentHeader("Header B") { Level = 2 }, 66new IngestionDocumentHeader("Header C") { Level = 3 }, 89new IngestionDocumentHeader("Header A") { Level = 1 }, // 2 tokens 90new IngestionDocumentHeader("Header B") { Level = 2 }, // 2 tokens 91new IngestionDocumentHeader("Header C") { Level = 3 }, // 2 tokens 111new IngestionDocumentHeader("Header A") { Level = 1 }, 112new IngestionDocumentHeader("Header B") { Level = 2 }, 113new IngestionDocumentHeader("Header C") { Level = 3 }, 238new IngestionDocumentHeader("Header A") { Level = 1 },
Chunkers\SectionChunkerTests.cs (4)
99new IngestionDocumentHeader("# Section title"), 106new IngestionDocumentHeader("## Subsection title"), 113new IngestionDocumentHeader("### Subsubsection title"), 171new IngestionDocumentHeader("Section 1"),
Chunkers\SemanticSimilarityChunkerTests.cs (2)
144new IngestionDocumentHeader("# .NET Supported Languages") { Level = 1 }, 149new IngestionDocumentHeader("# Ancient Greek Olympian Gods") { Level = 1 },
IngestionDocumentTests.cs (4)
27new IngestionDocumentHeader("header"), 34new IngestionDocumentHeader("nested header"), 44new IngestionDocumentHeader("header 2"), 78IngestionDocumentHeader header = new("# header");