LlamaIndex.NET contains core types for working with LlamaIndex and client SDKs.
At this time, the following are supported:
- LlamaParse client SDK for .NET
LlamaIndex is a data framework for LLM applications.
LlamaCloud is a managed platform for data parsing and ingestion. It consists of the following components:
- LlamaParse: self-serve document parsing API
- Ingestion and Retreival API: Connect to 10+ data sources and sinks. Easily setup a data pipeline that can handle large volumes of data and incremental updates.
- Evaluations and observability: Run and track evaluations on your data and model
- Documentation: https://docs.llamaindex.ai/en/stable/
- Twitter: https://twitter.com/llama_index
- Discord: https://discord.gg/dGcwcsnxhU
Interested in contributing? See our Contribution Guide for more details.
Install the LlamaParse .NET SDK.
You can find samples in the samples directory.
using LlamaParse;
// Initialize LlamaParse client
var parseConfig = new Configuration
{
ApiKey = "YOUR-API-KEY";
};
var client = new LlamaParseClient(new HttpClient(), parseConfig);
// Get file info
var fileInfo = new FileInfo("attention-is-all-you-need.pdf");
// Parse document and format result as JSON
var documents = new List<RawResult>();
await foreach(var document in client.LoadDataRawAsync(fileInfo, ResultType.Json)
{
documents.Add(document);
}
// Output to console
foreach(var document in documents)
{
Console.WriteLine(document);
}