Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
About Article
Analyze Data
Archive
Best Practices
Better Outputs
Blog
Code Optimization
Code Quality
Command Line
Course
Daily tips
Dashboard
Data Analysis & Manipulation
Data Engineer
Data Visualization
DataFrame
Delta Lake
DevOps
DuckDB
Environment Management
Feature Engineer
Git
Jupyter Notebook
LLM
LLM Tools
Machine Learning
Machine Learning & AI
Machine Learning Tools
Manage Data
MLOps
Natural Language Processing
Newsletter Archive
NumPy
Pandas
Polars
PySpark
Python Helpers
Python Tips
Python Utilities
Scrape Data
SQL
Testing
Time Series
Tools
Visualization
Visualization & Reporting
Workflow & Automation
Workflow Automation

Newsletter #288: MLflow: Track Every LLM API Call with 1 Line of Code

Newsletter #288: MLflow: Track Every LLM API Call with 1 Line of Code

Grab your coffee. Here are this week’s highlights.


๐Ÿ“… Today’s Picks

MLflow: Track Every LLM API Call with 1 Line of Code

Code example: MLflow: Track Every LLM API Call with 1 Line of Code

Problem

Most teams building LLM apps don’t set up tracking because they see API calls as simple request-response operations.

But every API call costs money, and without token-level visibility, you can’t tell where your budget is going until it’s already spent.

Solution

MLflow‘s autolog traces every OpenAI API call with just one line of code, so you always know what was sent, what came back, and how many tokens it used.

Key capabilities:

  • Track token usage per call to identify which requests consume the most
  • View full prompt and response content for every call
  • Measure latency per call to find which requests are slowing down your app
  • Works with OpenAI, Anthropic, LangChain, LlamaIndex, and DSPy

Rembg: Remove Image Backgrounds in 2 Lines of Python

Code example: Rembg: Remove Image Backgrounds in 2 Lines of Python

Problem

Removing backgrounds from images typically requires Photoshop, online tools, or AI assistants like ChatGPT.

But these options come with subscription costs, upload limits, or privacy concerns with your images on external servers.

Solution

Rembg uses AI models to remove backgrounds locally with just 2 lines of Python.

It’s also open source and compatible with common Python imaging libraries.


โ˜•๏ธ Weekly Finds

awesome-claude-skills [AI Tools] – Curated list of Claude Skills, resources, and tools for customizing Claude AI workflows with community-contributed templates and integrations

zvec [Vector Database] – In-process vector database built on Alibaba’s Proxima engine that searches billions of vectors in milliseconds with zero server setup

langflow [AI Agents] – Visual platform for building and deploying AI-powered agents and workflows with drag-and-drop interface, multi-agent orchestration, and MCP server support

Looking for a specific tool? Explore 70+ Python tools โ†’

Stay Current with CodeCut

Actionable Python tips, curated for busy data pros. Skim in under 2 minutes, three times a week.

Leave a Comment

Your email address will not be published. Required fields are marked *

0
    0
    Your Cart
    Your cart is empty
    Scroll to Top

    Work with Khuyen Tran

    Work with Khuyen Tran