Building the .NET AI App Foundation
A small ASP.NET Core foundation for model access, validated configuration, tracing, buffered and streaming HTTP contracts, and future AI capabilities.
A small ASP.NET Core foundation for model access, validated configuration, tracing, buffered and streaming HTTP contracts, and future AI capabilities.
Use DateTimeOffset for timestamps sent through APIs, messages, or storage when they must identify one unambiguous point in time.
Index documents in Qdrant from .NET with Azure OpenAI or local Ollama embeddings, stable point IDs, useful payloads, and a read-back check.
C# 14 lets you write nameof(List<>) instead of supplying a type argument just to get the name. The result is still List.
Register .NET AI clients, tools, prompts, and retrieval services with explicit lifetimes, safe request state, and clear disposal ownership.
Check why generation stopped before accepting model output, and give incomplete responses an explicit application outcome.
Track progress per consumer and source ordering boundary, and advance each checkpoint only after the corresponding ingestion work succeeds.
Let one throttling response reduce pressure from every caller sharing the affected capacity pool.
A CancellationToken in scope does nothing unless the async enumeration receives and observes it.
Rethrow the current exception with throw; so the original failure location remains visible.