AI/ML Techniques

Fine-Tuning vs. Frozen Embeddings: When to Adapt the LLM vs. the Sklearn Head

In this article, you will learn how to compare two strategies for adapting a large language model to a specific…

15 hours ago

Context Managers Beyond Opening Files in Python

The stopwatch in the opening script is the smallest case of the pattern.

2 days ago

Robust Serialization with JSON and Custom Types

In this article, you will learn how to build a robust JSON serialization pipeline in Python that handles custom data…

3 days ago

Speculative Decoding Explained: How to Get 3× Faster Inference from Any LLM

In this article, you will learn how speculative decoding works, why it produces real speed gains at the hardware level,…

6 days ago

How to Build a Multi-Modal RAG Pipeline for Images and Documents in Python

In this article, you will learn how to build a multi-modal RAG pipeline in Python that retrieves and reasons over…

1 week ago

pgvector vs. Dedicated Vector Databases: A Production Benchmark

Run this on a typical laptop and both systems will report latencies in the low single-digit to tens of milliseconds…

1 week ago

Descriptors and Controlled Attributes in Python

In this article, you will learn what Python descriptors are and how to use them to build three types of…

1 week ago

Choosing a Chunking Strategy for Your LLM Apps: A Decision-Tree Approach

In this article, you will learn how to choose the right chunking strategy for a retrieval-augmented generation system by working…

2 weeks ago

Building a Custom LLM Evaluation Harness in Python from Scratch

In this article, you will learn how to build a custom LLM evaluation harness in Python from scratch, structured around…

2 weeks ago