Blog

Blog posts on .NET, Azure, and more.

Working with GitHub models in .NET 8 and Semantic Kernel

September 30, 2024 by Anuraj

AI dotnet AspNetCore

In this blog post, we’ll learn build generative AI apps using GitHub models with .NET 8 and Semantic Kernel. First we need to get access to GitHub Models. We can get it from https://github.com/marketplace and while GitHub Models is in private beta today, you can join the waitlist.

Building Generative AI apps with .NET 8 and Semantic Kernel

August 30, 2024 by Anuraj

AI dotnet AspNetCore

In this blog post, we’ll learn build generative AI apps with .NET 8 and Semantic Kernel. This is an introduction post - we will learn how to get started with Semantic Kernel in ASP.NET Core. Most of the Semantic Kernel tutorials, we will see only with Console applications. Here we are integrating Semantic Kernel to an ASP.NET Core Web API application which will act as backend to a Review API - where we will analyzing the sentiment of the review and return it.

How to use Ollama as backend for Smart Components

August 08, 2024 by Anuraj

Docker AI dotnet

Few weeks back I wrote a blog post on Smart Components - a few components which helps .NET developers to enable infuse AI into their applications with zero or less code. By default we need an Open AI endpoint and API Key. But we can do it with Ollama. To use Ollama, make sure you’re running Ollama - I am using Ollama in Docker with the command - docker run -d -v D:\OllamaModels:/root/.ollama -p 11434:11434 --name ollama ollama/ollama. Next we need to run one model, I am using mistral. To download and run this, we first need to open shell in the running container with the command - docker exec -it ollama bash - which will open bash shell in the ollama container. Next we can run the command ollama pull mistral:7b - this command will download mistral:7b model to the local machine. This may take some time. Here is the screenshot.

How to run EF Core migrations from Docker

July 24, 2024 by Anuraj

Docker dotnet EFCore

In this blog post, we’ll learn how to run EF Core migrations from Docker. One of the project I am working we had to deploy database changes to MySql Server using Docker. In this post we will explore various approaches to deploy database schema changes using Docker. In this project, all our model classes and dbcontext class is in a class library - not as part of the web API application.

Running Open Web UI locally with Ollama

July 13, 2024 by Anuraj

Docker AI Ollama

In this blog post, we’ll learn how to install and run Open Web UI using Docker. Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline. It supports various LLM runners, including Ollama and OpenAI-compatible APIs.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub