LM-Kit.NET 2026.11.1
LM-Kit.NET
Private AI for documents and internal knowledge, embedded in .NET.
LM-Kit.NET runs the full AI stack inside your process: agents, RAG, OCR, structured extraction, vision, speech and embeddings on curated open-weight models. No cloud calls, no Python sidecar, no per-token bill. Documents, indexes and prompts never leave the machine.
What you build with it
- Structured extraction: define fields, get schema-valid JSON from PDFs, scans and photographs, with per-field confidence.
- Cited answers: hybrid retrieval over your documents; answers carry document, page and score.
- Governed agents: planning, tool calling, orchestration and memory, with per-tool permissions and approval checkpoints.
- Document operations: classify, split, convert and permanently redact under human review.
- Vision, speech and embeddings: multimodal chat, local transcription, embedding models for search.
Extract fields from an invoice
using LMKit.Data;
using LMKit.Extraction;
using LMKit.Model;
var model = LM.LoadFromModelID("qwen3.5:4b");
var extractor = new TextExtraction(model);
extractor.Elements = new List<TextExtractionElement>
{
new("invoice_number", ElementType.String),
new("invoice_date", ElementType.Date),
new("total_amount", ElementType.Double),
};
extractor.SetContent(new Attachment("invoice.pdf"));
var data = extractor.Parse();
Console.WriteLine(data.Json);
Console.WriteLine(data.GetConfidence("total_amount"));
Put a governed agent to work
using LMKit.Agents;
using LMKit.Agents.Tools.BuiltIn;
using LMKit.Model;
var model = LM.LoadFromModelID("qwen3.5:9b");
var agent = Agent.CreateBuilder(model)
.WithTools(t =>
{
t.Register(BuiltInTools.WebSearch);
t.Register(BuiltInTools.CalcArithmetic);
})
.Build();
var result = await agent.RunAsync(
"Current BTC price in EUR, rounded to the nearest euro?");
Console.WriteLine(result.Text);
Runs on
- .NET Standard 2.0, .NET 8, 9 and 10
- Windows, Linux x64 and ARM64, macOS
- CPU out of the box; CUDA 12/13, Vulkan and Metal are used when present
Models download once and cache locally: chat, vision, OCR, embedding and speech families, plus your own fine-tunes.
The engine underneath
Dynamic Sampling, LM-Kit's adaptive inference layer, is why small local models hold their own on extraction, classification and structured generation: grammar-constrained output always parses, and it works on any supported model as shipped, including your fine-tunes.
Two ways to run the same engine
- Embed it with this package, in process, from C# or VB.NET.
- Deploy LM-Kit One, a private AI server with HTTP APIs and governed MCP tools, so AI assistants can use your document capabilities without reaching your files.
Links
Free for small teams, commercial licensing above that line: licensing.
No packages depend on LM-Kit.NET.
.NET 8.0
- LM-Kit.NET.Backend.Cpu (= 2026.11.1)
- LM-Kit.NET.Backend.Vulkan (= 2026.11.1)
- AngleSharp (>= 1.10.4)
- System.Numerics.Tensors (>= 10.0.13)
- System.IO.Packaging (>= 10.0.13)
- DocumentFormat.OpenXml (>= 3.5.1)
- MimeKit (>= 5.0.0)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
- BouncyCastle.Cryptography (>= 2.7.0)
.NET 9.0
- LM-Kit.NET.Backend.Cpu (= 2026.11.1)
- LM-Kit.NET.Backend.Vulkan (= 2026.11.1)
- AngleSharp (>= 1.10.4)
- System.Numerics.Tensors (>= 10.0.13)
- System.IO.Packaging (>= 10.0.13)
- DocumentFormat.OpenXml (>= 3.5.1)
- MimeKit (>= 5.0.0)
- System.Security.Cryptography.Pkcs (>= 10.0.13)
- BouncyCastle.Cryptography (>= 2.7.0)
.NET 10.0
- LM-Kit.NET.Backend.Cpu (= 2026.11.1)
- LM-Kit.NET.Backend.Vulkan (= 2026.11.1)
- AngleSharp (>= 1.10.4)
- System.Numerics.Tensors (>= 11.0.0)
- System.IO.Packaging (>= 11.0.0)
- DocumentFormat.OpenXml (>= 3.5.1)
- MimeKit (>= 5.0.0)
- System.Security.Cryptography.Pkcs (>= 11.0.0)
- BouncyCastle.Cryptography (>= 2.7.0)
.NET 11.0
- LM-Kit.NET.Backend.Cpu (= 2026.11.1)
- LM-Kit.NET.Backend.Vulkan (= 2026.11.1)
- AngleSharp (>= 1.10.4)
- System.Numerics.Tensors (>= 11.0.0)
- System.IO.Packaging (>= 11.0.0)
- DocumentFormat.OpenXml (>= 3.5.1)
- MimeKit (>= 5.0.0)
- System.Security.Cryptography.Pkcs (>= 11.0.0)
- BouncyCastle.Cryptography (>= 2.7.0)
.NET Standard 2.0
- LM-Kit.NET.Backend.Cpu (= 2026.11.1)
- LM-Kit.NET.Backend.Vulkan (= 2026.11.1)
- AngleSharp (>= 1.10.4)
- System.Numerics.Tensors (>= 11.0.0)
- System.IO.Packaging (>= 11.0.0)
- DocumentFormat.OpenXml (>= 3.5.1)
- MimeKit (>= 5.0.0)
- System.Security.Cryptography.Pkcs (>= 11.0.0)
- BouncyCastle.Cryptography (>= 2.7.0)
- System.Diagnostics.DiagnosticSource (>= 11.0.0)
- Microsoft.Bcl.AsyncInterfaces (>= 11.0.0)
- System.Memory (>= 4.6.3)
- System.Buffers (>= 4.6.1)
- System.Numerics.Vectors (>= 4.6.1)
- System.Linq.Async (>= 7.0.1)
- Microsoft.Bcl.Memory (>= 11.0.0)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.Text.Encodings.Web (>= 11.0.0)
- System.Text.Json (>= 11.0.0)
- System.Threading.Tasks.Extensions (>= 4.6.3)
- System.Threading.Channels (>= 11.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 2026.11.1 | 2 | 11/28/2026 |
| 2026.10.8 | 7 | 11/07/2026 |
| 2026.10.7 | 4 | 10/26/2026 |
| 2026.10.6 | 1 | 11/14/2026 |
| 2026.10.5 | 3 | 11/14/2026 |
| 2026.10.4 | 0 | 10/08/2026 |
| 2026.10.3 | 13 | 10/04/2026 |
| 2026.10.2 | 9 | 10/04/2026 |
| 2026.10.1 | 6 | 10/04/2026 |
| 2026.10.0 | 7 | 10/04/2026 |
| 2026.9.2 | 6 | 10/06/2026 |
| 2026.9.1 | 6 | 09/25/2026 |
| 2026.9.0 | 7 | 09/25/2026 |
| 2026.8.6 | 6 | 09/25/2026 |
| 2026.8.5 | 6 | 09/29/2026 |
| 2026.8.4 | 0 | 08/18/2026 |
| 2026.8.3 | 8 | 08/16/2026 |
| 2026.8.2 | 6 | 09/25/2026 |
| 2026.8.1 | 5 | 10/09/2026 |
| 2026.7.4 | 5 | 09/29/2026 |
| 2026.7.3 | 4 | 10/06/2026 |
| 2026.7.2 | 7 | 09/25/2026 |
| 2026.7.1 | 5 | 09/29/2026 |
| 2026.6.4 | 5 | 09/25/2026 |
| 2026.6.3 | 7 | 09/25/2026 |
| 2026.6.2 | 7 | 09/25/2026 |
| 2026.6.1 | 9 | 09/25/2026 |
| 2026.5.6 | 5 | 09/25/2026 |
| 2026.5.5 | 12 | 09/25/2026 |
| 2026.5.4 | 4 | 09/29/2026 |
| 2026.5.3 | 6 | 09/29/2026 |
| 2026.5.2 | 8 | 09/25/2026 |
| 2026.5.1 | 5 | 10/28/2026 |
| 2026.4.4 | 3 | 09/26/2026 |
| 2026.4.3 | 0 | 04/17/2026 |
| 2026.4.2 | 6 | 09/25/2026 |
| 2026.4.1 | 8 | 10/09/2026 |
| 2026.3.5 | 0 | 03/28/2026 |
| 2026.3.4 | 0 | 03/24/2026 |
| 2026.3.3 | 4 | 09/25/2026 |
| 2026.3.2 | 7 | 09/25/2026 |
| 2026.3.1 | 4 | 10/13/2026 |
| 2026.2.11 | 5 | 09/26/2026 |
| 2026.2.10 | 4 | 10/13/2026 |
| 2026.2.9 | 7 | 09/25/2026 |
| 2026.2.6 | 6 | 09/25/2026 |
| 2026.2.5 | 7 | 09/25/2026 |
| 2026.2.4 | 6 | 09/25/2026 |
| 2026.2.3 | 7 | 09/25/2026 |
| 2026.2.2 | 0 | 02/06/2026 |
| 2026.2.1 | 10 | 09/25/2026 |
| 2026.1.5 | 7 | 09/29/2026 |
| 2026.1.4 | 6 | 09/29/2026 |
| 2026.1.3 | 7 | 09/29/2026 |
| 2026.1.2 | 8 | 09/25/2026 |
| 2026.1.1 | 5 | 09/25/2026 |
| 2025.12.4 | 5 | 10/09/2026 |
| 2025.12.3 | 7 | 09/26/2026 |
| 2025.12.2 | 7 | 09/26/2026 |
| 2025.12.1 | 4 | 09/26/2026 |
| 2025.11.3 | 6 | 09/26/2026 |
| 2025.11.2 | 9 | 09/26/2026 |
| 2025.11.1 | 5 | 09/26/2026 |
| 2025.10.5 | 6 | 09/26/2026 |
| 2025.10.4 | 6 | 09/26/2026 |
| 2025.10.3 | 6 | 10/09/2026 |
| 2025.10.2 | 5 | 09/26/2026 |
| 2025.9.3 | 0 | 09/29/2025 |
| 2025.9.2 | 10 | 09/25/2026 |
| 2025.9.1 | 8 | 09/29/2026 |
| 2025.8.4 | 5 | 09/29/2026 |
| 2025.8.3 | 4 | 09/29/2026 |
| 2025.8.2 | 6 | 09/25/2026 |
| 2025.8.1 | 7 | 09/29/2026 |
| 2025.7.5 | 6 | 09/25/2026 |
| 2025.7.4 | 5 | 09/29/2026 |
| 2025.7.3 | 7 | 09/29/2026 |
| 2025.7.2 | 8 | 09/25/2026 |
| 2025.7.1 | 6 | 09/29/2026 |
| 2025.6.5 | 6 | 09/25/2026 |
| 2025.6.4 | 7 | 10/11/2026 |
| 2025.6.3 | 5 | 09/29/2026 |
| 2025.6.2 | 6 | 09/25/2026 |
| 2025.6.1 | 6 | 10/08/2026 |
| 2025.5.5 | 5 | 10/11/2026 |
| 2025.5.4 | 6 | 09/25/2026 |
| 2025.5.3 | 9 | 09/25/2026 |
| 2025.5.2 | 7 | 09/25/2026 |
| 2025.5.1 | 9 | 09/25/2026 |
| 2025.4.13 | 7 | 09/26/2026 |
| 2025.4.12 | 6 | 09/26/2026 |
| 2025.4.11 | 8 | 09/26/2026 |
| 2025.4.10 | 8 | 09/26/2026 |
| 2025.4.9 | 6 | 09/29/2026 |
| 2025.4.8 | 7 | 09/29/2026 |
| 2025.4.7 | 8 | 09/29/2026 |
| 2025.4.6 | 4 | 09/29/2026 |
| 2025.4.5 | 5 | 09/25/2026 |
| 2025.4.2 | 7 | 09/25/2026 |
| 2025.4.1 | 6 | 09/29/2026 |
| 2025.3.6 | 5 | 09/29/2026 |
| 2025.3.5 | 6 | 09/25/2026 |
| 2025.3.4 | 6 | 09/29/2026 |
| 2025.3.3 | 7 | 09/25/2026 |
| 2025.3.2 | 5 | 09/25/2026 |
| 2025.3.1 | 4 | 10/12/2026 |
| 2025.2.4 | 5 | 09/25/2026 |
| 2025.2.3 | 6 | 09/25/2026 |
| 2025.2.2 | 5 | 10/08/2026 |
| 2025.2.1 | 8 | 09/25/2026 |
| 2025.1.10 | 6 | 09/26/2026 |
| 2025.1.9 | 4 | 10/13/2026 |
| 2025.1.8 | 5 | 09/29/2026 |
| 2025.1.7 | 6 | 10/13/2026 |
| 2025.1.6 | 6 | 09/29/2026 |
| 2025.1.4 | 6 | 09/29/2026 |
| 2025.1.3 | 6 | 09/29/2026 |
| 2025.1.2 | 7 | 09/25/2026 |
| 2025.1.1 | 9 | 09/25/2026 |
| 2024.12.13 | 6 | 09/25/2026 |
| 2024.12.12 | 6 | 10/04/2026 |
| 2024.12.11 | 6 | 09/25/2026 |
| 2024.12.10 | 5 | 09/25/2026 |
| 2024.12.9 | 3 | 09/26/2026 |
| 2024.12.8 | 6 | 09/26/2026 |
| 2024.12.7 | 10 | 09/26/2026 |
| 2024.12.6 | 3 | 10/09/2026 |
| 2024.12.5 | 5 | 10/08/2026 |
| 2024.12.4 | 6 | 09/26/2026 |
| 2024.12.3 | 6 | 09/26/2026 |
| 2024.12.2 | 4 | 09/26/2026 |
| 2024.12.1 | 11 | 09/26/2026 |
| 2024.11.10 | 5 | 09/25/2026 |
| 2024.11.9 | 5 | 10/09/2026 |
| 2024.11.8 | 7 | 09/26/2026 |
| 2024.11.7 | 8 | 10/10/2026 |
| 2024.11.6 | 8 | 09/26/2026 |
| 2024.11.5 | 6 | 09/26/2026 |
| 2024.11.4 | 4 | 10/09/2026 |
| 2024.11.3 | 6 | 09/26/2026 |
| 2024.11.2 | 9 | 09/26/2026 |
| 2024.11.1 | 7 | 09/26/2026 |
| 2024.10.5 | 5 | 09/26/2026 |
| 2024.10.4 | 8 | 09/26/2026 |
| 2024.10.3 | 6 | 09/26/2026 |
| 2024.10.2 | 8 | 09/26/2026 |
| 2024.10.1 | 9 | 09/26/2026 |
| 2024.9.4 | 5 | 09/25/2026 |
| 2024.9.3 | 3 | 10/13/2026 |
| 2024.9.2 | 3 | 09/25/2026 |
| 2024.9.1 | 8 | 09/29/2026 |
| 2024.9.0 | 7 | 09/25/2026 |
| 2024.8.4 | 8 | 09/25/2026 |
| 2024.8.3 | 10 | 09/29/2026 |
| 2024.8.2 | 7 | 09/25/2026 |
| 2024.8.1 | 5 | 09/29/2026 |
| 2024.8.0 | 7 | 09/25/2026 |
| 2024.7.10 | 8 | 09/26/2026 |
| 2024.7.9 | 6 | 09/29/2026 |
| 2024.7.8 | 7 | 09/29/2026 |
| 2024.7.7 | 4 | 09/25/2026 |
| 2024.7.6 | 7 | 09/29/2026 |
| 2024.7.5 | 6 | 09/29/2026 |