-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
In this chapter, we dove into generative AI by using Microsoft.Extensions.AI and Ollama to run locally-hosted LLMs to accomplish specific tasks.
We saw how you can install and pull models using Ollama and then reference them in .NET code, and discussed some of the machine requirements for doing so, along with basic information on how to select models to experiment with.
Prompt engineering, and one-shot and few-shot inferencing can make a big impact in AI systems, and we explored some of the considerations you need to keep in mind when creating or modifying these examples.
We concluded our chapter with an exploration of tools and function-calling AI agents and touched on the concept of RAG.
In the next chapter, we'll dive deeper into these concepts by looking into AI orchestration for more complex functions using Microsoft Semantic Kernel and Model Context Protocol (MCP) servers.