Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.06 KB

File metadata and controls

40 lines (26 loc) · 1.06 KB

Microsoft.Extensions.DataIngestion.Markdig

Provides an implementation of the IngestionDocumentReader class for the Markdown files using MarkDig library.

Install the package

From the command-line:

dotnet add package Microsoft.Extensions.DataIngestion.Markdig --prerelease

Or directly in the C# project file:

<ItemGroup>
  <PackageReference Include="Microsoft.Extensions.DataIngestion.Markdig" Version="[CURRENTVERSION]" />
</ItemGroup>

Usage Examples

Creating a MarkdownReader for Data Ingestion

using Microsoft.Extensions.DataIngestion;

IngestionDocumentReader reader = new MarkdownReader();

using IngestionPipeline<string> pipeline = new(CreateChunker(), CreateWriter());

await foreach (IngestionResult result in pipeline.ProcessAsync(reader, directory, "*.md"))
{
    Console.WriteLine($"Processed '{result.DocumentId}'. Succeeded: {result.Succeeded}");
}

Feedback & Contributing

We welcome feedback and contributions in our GitHub repo.