LLM Evaluation in .NET: Metrics, RAG, Agents and AI Testing Building an application with a large language model is relatively easy. Making sure that application continues to produce useful, accurate, reliable, safe, and affordable results is much harder. An LLM can generate a response in a few seconds, but the fact that it generated an answer does not tell us whether the answer was good. Was it correct? Did it actually answer the user's question? If the application uses RAG, did the answer come from the retrieved information? If an AI agent was involved, did it select the correct tool? Did the tool receive valid arguments? There are also operational questions: How many tokens were consumed? How much did the request cost? How long did the user wait? Did the system use unnecessary tools or model calls? Did anything get worse after a prompt, model, or retrieval change? These questions make LLM evaluation an important part of production AI engineering. Tradition...