-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
In the last chapter, we teased the idea of AI interactions by exploring an implementation of the classic ELIZA chatbot using the modern Uno Platform toolset for cross-platform .NET development.
In this chapter, we'll dive into the world of AI by using generative AI through locally-hosted large language models (LLMs). You'll discover what Ollama is, how to set it up and host models locally, and how to connect to it in .NET code.
Along the way, we'll cover prompt engineering, few-shot inferencing, retrieval-augmented generation (RAG), and function calling as we integrate simple AI agents into our sample application. By the time we're done, you'll have a locally running model you can call free of charge and the knowledge needed to build and expand small AI systems using C#.
Specifically, we'll be building conversational AI partners in this chapter who can interact...