Build a Document Q&A App with RAG and Semantic Kernel in C#
Build a Document Q&A App with RAG and Semantic Kernel in C#
Keyword search breaks down the moment your question and the answer use different words. You ask "how does the system handle errors?" but the document says "exception management strategy" -- and you get nothing. Building a document Q&A app with RAG and Semantic Kernel in C# solves this by converting both your question and your documents into vectors and finding answers by meaning, not exact text match.
This is a complete walkthrough of a...
Take me to this post.
March 17, 2026
Windows stack limit checking retrospective: x86-32 also known as i386, second try
Appeasing the invisible return address predictor.
The post Windows stack limit checking retrospective: x86-32 also known as i386, second try appeared first on The Old New Thing....
Take me to this post.
March 17, 2026
How to Implement Singleton Pattern in C#: Step-by-Step Guide
How to Implement Singleton Pattern in C#: Step-by-Step Guide
Implementing the Singleton pattern in C# requires careful attention to thread safety, initialization timing, and code structure. This step-by-step guide will walk you through creating a proper Singleton implementation, from the basic approach to production-ready thread-safe versions.
This guide covers the mechanics: thread safety, initialization, and code structure. We'll start with the simplest implementation and progress to productio...
Take me to this post.
March 17, 2026
Create an HTML version of an OpenAPI spec
I have a new project where we will be integrating with a third party API that is currently being written. Due to Conway's Law, we are being sent new versions of the OpenAPI spec as a set of JSON files via email. I quite like seeing the HTML rendering of an OpenAPI spec when reading it and understanding it, so I knocked up a simple shell script that takes an OpenAPI spec file and outputs… continue reading....
Take me to this post.
March 17, 2026
CodeSOD: Poly Means Many, After All
Capybara James sends us some code which is totally designed to be modular.
This particular software accepts many kinds of requests which it then converts into a request for a ListView. This is a perfect example of where to use polymorphism, so you can write one transform method that operates on any kind of request.
Let's see how they did it:
@Component
public class ListViewTableRequestTransformer implements Function {
@Override
public ListViewRequest apply(TableExportRequest request) {
...
Take me to this post.
March 17, 2026
Do stricter MCP tool schemas increase agent reliability?
MCP servers contain tools, and each tool is described by its name, description, input parameters, and return type. When an agent is calling a tool, it formulates its call based on only that metadata; it does not know anything about the internals of a tool. For my PyAI talk last week, I investigated this hypothesis:
If we use stricter types for MCP tool schemas, then agents calling those tools will be more successful.
This was a hypothesis based on my personal experience over the last year of d...
Take me to this post.
March 17, 2026
Making Investing Fit for a Sci-Fi World
An underestimated but fundamental fact in financial markets is the huge and mostly unmet demand for insurance against sci-fi futures. The spell that kept large scale capital thinking that dramatic innovation would be contained at the level of retail devices and services while preserving basic economic and sociopolitical structures has broken. There’s a clear sense that the world will become stranger faster and in less controlled ways than previously expected and, like Treasuries during more trad...
Take me to this post.
March 17, 2026
journalctl: The Complete Guide to Reading Linux System Logs
A practical, complete guide to journalctl for reading, filtering, and managing systemd journal logs on Linux. Covers time filters, boot sessions, service logs, priority levels, output formats, and journal size management.Continue reading......
Take me to this post.
March 17, 2026
Set Battery Charge Threshold in Linux
Set Battery Charge Threshold in Linux...
Take me to this post.
March 17, 2026