Skip to content

C#

Access Real-Time Data from LLM using Semantic Kernel

LLMs have been around for years now, and we have been using them for data that doesn’t change frequently. We don’t ask them for current data, like today’s weather or the balance in our bank account. Instead, we ask evergreen questions, such as who the members of the band ABBA are or whether we can eat ice cream in space (the answer is yes!).

However, since GPT-4, we have gained …

AI Toolkit for Visual Studio Code

AI Toolkit for Visual Studio Code is a “relatively” new toolset, that was previously known as Windows AI Studio. Toolkit is an extension, that allows developers to run SLMs (Small Language Models) on their local machine, or use Azure AI Studio LLM models from cloud. As you can easily use the Azure AI Studio models without any extensions like this, I find the local models more interesting …

Photo by Pixabay: https://www.pexels.com/photo/brown-wooden-mallet-near-brown-chicken-egg-40721/

Force Azure OpenAI to response with JSON data

Aug 7, 2024 Microsoft announced, that they are now supporting JSON mode Azure OpenAI. This mode forces OpenAI to response only with JSON data. You could kind of do the same thing earlier, but the OpenAI response didn’t always contain only valid JSON. There could be some additional text before and after the JSON data. However now you can force the OpenAI to stay strictly in JSON format.

Supported

Photo by Pixabay: https://www.pexels.com/photo/closed-door-and-lighted-light-sconce-277559/

Access Microsoft Fabric Data from Dotnet App

Microsoft Fabric is an excellent product for storing both structured and unstructured data for data analysis and AI workloads. It is built on top of Azure Blob Storage, making data storage relatively cheap and easy to access. Fabric offers many built-in tools for data manipulation, including Dataflow Gen 2, Data Pipelines, and Notebooks. However, sometimes you need to access the data from outside of Microsoft Fabric, which is the topic …

Photo by David Bartus: https://www.pexels.com/photo/black-audio-mixer-690779/

Develop LLM Solutions In Local Environment

Sometimes you want to develop or experiment with LLM APIs without having to submit your data to Azure Open AI or any other LLM service. Instead, you simply want to run a basic LLM AI locally to test whether your idea works. Jussi has authored some informative blog posts about Ollama, which indeed is a great tool for this situation, but it might not be the best…

LM Studio

Photo by Jonny Lew: https://www.pexels.com/photo/selective-focus-photography-of-gray-and-blue-moth-perched-on-brown-surface-1212755/

New Visual Studio Solution File Format

Yes, you read that right! Visual Studio is recreating its solution files, which have remained unchanged throughout my 15 years in this industry and I think this is great and anticipated improvement.

What is a solution file?

That is a great question. A Visual Studio solution file (.sln extension) is a important part of the Visual Studio development environment. It serves as a container for one or more projects

Run AzureDevOps pipelines from Elgato Stream Deck

Elgato Stream Deck is a fancy USB device that can be used to control lights, OBS and many other things. It has wide range of plugins, which can be installed easily from Stream Deck Store. Currently the plugin store does not contain any plugins to use AzureDevOps, so of course I had to fix this shortcoming.

How to create Stream Deck plugin

The Stream Deck has plugin SDK’s for multiple …

Visual Studio Tips and Tricks

I have been using Visual Studio over a decade almost daily and I would like to share few tips that I find particularly useful and which improves your productivity if used correctly.

Surround with

Select code that block that you would like to surround with and then press CTLR+K, CTRL+S. This starts and macro that can used to surround blocks of code with try-catch, using, etc. I use this …

Mock Cassandra (actually ScyllaDB) in C# unit tests

I have been lately working a lot with high throughput database called ScyllaDB. ScyllaDB is a Cassandra compatible, open source, nosql data store, which is accessed with Cassandra database drivers. It has higher throughput, lower latency and smaller memory footprint than Cassandra mainly because it is written in C++, not on top of JVM like Cassandra.

Unit testing classes that access database at somepoint can be a pain in the …

Remove link between work items with Azure DevOps API

Today I was asked to build the Azure Function which removes existing link between work items from Azure DevOps. Azure DevOps documentation has an example about this method call, but the documentation itself is quite thin.

To delete only certain type of link we need to first load the work item from Azure DevOps and then try to find the index of link we want to delete. When loading work …