D1F0F3B0 AFD2 4DA5 B3D6 899AB1A9708C

Pydantic + OpenAI: The Cleanest Way to Get Structured Outputs from LLMs

In my latest post on structured outputs, the three main approaches for getting machine-readable responses from an LLM. Those are JSON Mode, Function Calling, and OpenAI’s Structured Outputs. If you haven’t read that post yet, it’s worth a quick read before this one, since we’ll be building directly on top of it. So, today, we’ll …

Pydantic + OpenAI: The Cleanest Way to Get Structured Outputs from LLMs Read More »

awan 5 realworld sql projects build data portfolio 1

5 Real-World SQL Projects to Build Your Data Portfolio

  Contents# Introduction# 1. E-commerce Customer Churn Analysis Using SQL# 2. SQL Data Warehouse Project# 3. Sales Data Analysis Using SQL# 4. Bank Customer Segmentation Analysis# 5. Healthcare Data Analysis Using SQL# Final Thoughts # Introduction  SQL is still one of the most important skills for data analysts, data scientists, business intelligence analysts, and analytics engineers. But learning SQL syntax is only the …

5 Real-World SQL Projects to Build Your Data Portfolio Read More »

Pruning prompts into AI flow

Long Context Isn’t Free — I Built a Safe Prompt-Pruning Layer That Makes LLM Systems Work

I’ve worked on, conversation state tends to grow quickly over time. It’s common to resend large portions of the history on each turn—including older tool outputs, repeated RAG retrievals, and context that’s no longer relevant. As this accumulates, prompts can become significantly larger, which may increase inference cost and latency, and in some cases affect …

Long Context Isn’t Free — I Built a Safe Prompt-Pruning Layer That Makes LLM Systems Work Read More »

Noob Series Fine Tuning Explained

Fine-Tuning Explained for Noobs (How Pretrained Models Learn New Skills)

  Contents# Inroduction# What Is Pretraining?# What Is Fine-Tuning?# How Is Fine-Tuning Done?# Two Common Types of Fine-Tuning# Is Fine-Tuning Always the Answer?# Extra Resources # Inroduction  This article is part of my noob series where we write about the questions people Google most but may not understand well because of complex math and everything. So, if you are here, you might have …

Fine-Tuning Explained for Noobs (How Pretrained Models Learn New Skills) Read More »

kdn 7 steps to automating descriptive statistics with python feature

7 Steps to Automating Descriptive Statistics with Python

  Contents# Introduction# 1. Setting Up Your Environment and Loading the Data# 2. Getting the Baseline with df.describe()# 3. Pushing Pandas Further with include, .agg(), and groupby# 4. Getting a Richer Console Summary with skimpy# 5. Generating a Full Interactive Report with Profiling# 6. Building a Real “Table 1” with tableone# 7. Polishing It into a Publication-Quality Table with Great Tables# Tying It Together: …

7 Steps to Automating Descriptive Statistics with Python Read More »

Rosidi Data Scientists Becoming AI Managers 1

Data Scientists Are Becoming AI Managers, Not Model Builders

  Contents# Introduction# Orchestrating and Managing Multi-Agent Systems# Supervising Agents and Closing the Production Gap# Evaluating Models and Engineering Prompts# Governing and Regulating AI Systems# Interpreting Business Impact# Conclusion # Introduction  Data scientists at companies running AI in production are spending more time on AI oversight and system supervision than on model construction. Job postings and salary data from 2025 and 2026 confirm …

Data Scientists Are Becoming AI Managers, Not Model Builders Read More »

compare letterpress drawer 4140925 v3 card

Assemble Each RAG Generation Prompt from a Base Prompt Plus the Rules Each Question Needs

part of the generation brick of Enterprise Document Intelligence, a series that builds an enterprise RAG system from four bricks: document parsing, question parsing, retrieval, and generation. Article 8A (the answer contract) declared the typed schema family and the ANSWER_REGISTRY that maps each answer shape to its schema. This part builds the call that fills …

Assemble Each RAG Generation Prompt from a Base Prompt Plus the Rules Each Question Needs Read More »

kdn claude api python

Getting Started with the Claude API in Python

  Contents# Introduction# Prerequisites and Installation# Making Your First API Call# Understanding the Response Object# Using System Prompts# Streaming Responses# Next Steps # Introduction  You want to add Claude to a Python application. Creating an account and making your first API call is straightforward. The official documentation can get you from zero to a working request in a few minutes. The next questions …

Getting Started with the Claude API in Python Read More »

Scroll to Top