AI Test Generator for C# Projects
AI TestGen is a C# console application that automatically generates unit tests from your existing C# code with the help of AI. The tool parses your source with Roslyn, identifies the methods, and feeds that structure into a local Ollama AI model. The model then outputs ready‑to‑run tests that cover edge cases, exception paths, and typical usage patterns. All analysis and generation happens locally; no code leaves your machine and no cloud service is required.
Execute Python Code from C# with PythonNET
If you’re a C# developer who needs to tap into a Python library, run a script, or simply call a helper function written in Python, the PythonNET library is one of the simplest ways to do it. It exposes the CPython interpreter to .NET, allowing you to import modules, instantiate classes, and call functions as if they were native C# objects.
#3 Custom API for Open WebUI API Endpoints
In part 3 of our local AI series, we turn the Open WebUI chat endpoint into a clean, programmatic API. The example shows a simple JSON request that returns the model’s answer while filtering out extraneous metadata. This setup dramatically simplifies integrating RAG into your .NET applications, boosting user productivity by providing an API for your own local RAG-aware chatbots.
#2 Retrieval-Augmented Generation (RAG) with Open WebUI
This article explains Retrieval‑Augmented Generation (RAG), a method that combines a retrieval system with a generative language model and how to implement it localy with Ollama and Open WebUI. A user’s query is first embedded and matched against a database of document embeddings. The most relevant documents are fetched and fed to an LLM, which generates a response grounded in that external data—reducing hallucinations and improving accuracy. RAG is ideal for chatbots, research tools, and enterprise AI where up‑to‑date or domain‑specific knowledge is essential.
#1 Create your own custom LLM
The article explains how to “create your own custom LLM” by tweaking an existing model in Ollama rather than training a new one. It uses a ComfyUI workflow that needs detailed photographic prompts, so it shows how to define a Modelfile (based on gemma3:4b) that sets temperature, context size, and a system prompt that expands simple scene descriptions into full camera‑style prompts. With Docker and Open WebUI (which acts like a local ChatGPT), you can run the modified model and then generate tailored prompts for ComfyUI. The result is a lightweight, reusable setup that delivers consistent, high‑quality prompts for realistic image generation without heavy fine‑tuning.
Building rich C# Desktop Apps for LINUX Desktop
Discover how Avalonia UI empowers C# developers to build modern, cross-platform desktop applications for Windows and Linux. While .NET MAUI is a strong cross-platform framework for mobile and desktop, its mobile-first focus and lack of Linux support make it less suited for desktop-centric scenarios. This article explores why Avalonia UI is the better choice for creating rich desktop experiences, with native multi-window support and consistent rendering powered by Skia. Developers coming from WPF or UWP will feel right at home with Avalonia’s XAML-based approach and full MVVM support.
Protecting Your APIs with Rate Limiting in ASP.NET
Learn how to protect your ASP.NET Core APIs from DDOS abuse with built-in rate limiting in .NET 7+. Explore fixed window, sliding window, token bucket, and concurrency strategies, with code examples, benchmarks, and real-world best practices to keep your services secure and reliable.
Bash Tips & Tricks - Advanced
Unlock advanced Linux command-line tips and tricks: automate responses with yes, create and manage directories efficiently, using loops, inspect open files and network connections using lsof, and more expert-level CLI techniques.
Bash Tips & Tricks - The Basics
Tips & Tricks for the Linux Bash from Beginner to Master. Quick Linux command-line tips to search log files, count connection errors, compare files, check PostgreSQL status, manage file permissions using chmod, and monitor system usage and more.
Comparison of API Technologies
Comprehensive comparison of REST, GraphQL, and gRPC for C# .NET developers. Explore pros, cons, use cases, tooling, and real-world advice.