Building Retrieval-Augmented Generation (RAG) in C#
Learn how retrieval-augmented generation grounds an LLM in your own data, build a working RAG app in C#, and know when to add hybrid search, GraphRAG or evals.
Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Learn how retrieval-augmented generation grounds an LLM in your own data, build a working RAG app in C#, and know when to add hybrid search, GraphRAG or evals.
Learn how to configure Atlassian Forge LLMs, call hosted Claude models with @forge/llm, and build a Jira issue summarization feature.
Learn how to run a GGUF language model locally on Windows with llama.cpp and call its OpenAI-style HTTP API from a C# application.
Learn how to evaluate a Python RAG pipeline with RAGAS using faithfulness, context precision, context recall, and answer relevancy metrics.
Learn how to trace and debug LLM outputs with LangGraph, Graph RAG, Neo4j, FastAPI, and a React observability dashboard for compliance AI workflows.
Learn how to apply differential privacy to LLM fine-tuning with DP-SGD and Opacus, using a LangGraph multi-agent workflow to track privacy budgets, validate leakage, and audit training data.
Build an enterprise LLM documentation assistant using LangGraph, Redis semantic caching, Graph RAG, and Neo4j to reduce latency and cost while keeping answers fresh.
Learn how KV cache-aware routing reuses cached transformer attention states to reduce repeated prompt processing, lower latency, and improve GPU efficiency in LLM inference.
Learn how to fine-tune an open-source LLM with PyTorch, Hugging Face, PEFT, and LoRA, then expose it through an inference API for an ASP.NET Core application.
Compare RAG and fine-tuning for enterprise .NET AI applications, including when to use retrieval for changing knowledge and tuning for specialized model behavior.
Learn what an LLM (Large Language Model) is, how it works, and key concepts including tokens, tokenizers, prompts, training, inference, prompt engineering, hallucinations, RAG, memory, and deterministic AI output.
Learn how to design cost-aware multi-model routing for enterprise AI APIs using model quality, latency, token costs, availability, fallback policies, and workload-specific routing strategies.
Benchmark semantic chunking strategies for enterprise document retrieval by comparing retrieval accuracy, context quality, latency, token usage, chunk sizes, and downstream question-answering performance.
Benchmark LLM model-routing strategies by comparing inference cost, response latency, answer quality, reliability, and workload-specific model selection across multiple models.
Benchmark .NET Lambda cold starts with Durable Workflows. Optimize performance, understand overhead, and make informed architectural decisions.
Benchmark .NET Lambda cold starts with durable workflows. Understand latency, optimize performance, and improve serverless application efficiency.
Master Kubernetes production patterns: health checks, resource controls, scaling, config management, and controlled updates for reliable apps.
Secure digital banking onboarding with deterministic RAG. Prevent loops, dead ends, and chatter for regulatory compliance & conversion.
Optimize enterprise RAG systems by benchmarking chunking strategies. Maximize retrieval accuracy, minimize costs, and build reliable AI applications.
Optimize LLM costs with a cost-aware AI routing architecture. Reduce expenses, enhance resilience, and manage budgets effectively.
Build AI evaluation dashboards with MLflow & Databricks for GenAI. Move beyond accuracy to measure faithfulness, relevance, and cost.
GraphRAG enhances enterprise knowledge retrieval by combining vector search with knowledge graphs for complex, multi-hop queries.
Benchmark embedding models for enterprise semantic search & RAG. Optimize accuracy, latency, and cost with a .NET framework.
Learn how to measure and reduce token usage in production LLM applications using prompt optimization, context management, caching, response limits, and monitoring.
Benchmark vector databases for enterprise RAG workloads. Optimize costs by evaluating storage, query performance, and operational overhead.
Master feature flags in ASP.NET Core 11 for safe rollouts, progressive deployment, and instant rollbacks. Reduce risk and enhance CI/CD.
Discover an enterprise AML investigation system with built-in defenses against 14 LLM failure modes in financial reasoning.
Build an AI coding assistant in ASP.NET Core using MCP servers to access project files, APIs, and tools for enhanced development workflows.
Master .NET feature flags for safe deployments. Learn to implement, manage, and remove them for risk-free rollouts and A/B testing.
Unlock Local AI in .NET MAUI! Run ONNX models on-device for faster, private, offline AI experiences across platforms.
Everything on LLMs, not only its articles: the LLMs page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article