During the initial generative AI wave, many enterprise engineering teams in the US and UK built conversational workflows and internal copilots using the OpenAI Assistants API. While the Assistants API simplified early prototyping by bundling message thread management, retrieval, …
Human-in-the-Loop AI Agents: Implementing Approval Breakpoints in LangGraph
Fully autonomous AI agents are powerful, but deploying them in production without safety boundaries is dangerous. An autonomous agent equipped with database write permissions, payment gateway APIs, or shell execution tools can easily hallucinate bad arguments, wipe customer data, or …
Fixing Ollama Connection Refused (HTTP 11434) in Python and Docker
When calling a local Ollama instance from Python scripts, AI agents, or Docker containers, you may encounter:…
Fixing CUDA Out of Memory (OOM) When Serving DeepSeek-R1 with vLLM
When deploying DeepSeek-R1 (such as DeepSeek-R1-Distill-Qwen-14B or 32B) using vLLM, encountering a sudden torch.cuda.OutOfMemoryError: CUDA out of memory during startup or high concurrency is one of the most common issues developers face.…
Quantizing and Running DeepSeek-R1 with Ollama, llama.cpp, and GGUF in Python
The release of DeepSeek-R1 has transformed open-source artificial intelligence. By matching or exceeding OpenAI o1 on complex reasoning, mathematics, and code generation benchmarks while publishing complete weights and distillation architectures (from 1.5B to 70B parameters), DeepSeek-R1 has made enterprise-grade reasoning …
Building a Multimodal RAG Pipeline in Python with Qdrant and CLIP Embeddings
Standard Retrieval-Augmented Generation (RAG) pipelines are built exclusively for textual data. They parse markdown files, split paragraphs into token chunks, calculate dense text embeddings, and index them into stores like PostgreSQL with pgvector.…
Building an Agentic SQL Data Analyst in Python with DuckDB and LangChain
In enterprise data analytics, querying relational warehouses has traditionally required specialized SQL knowledge or static business intelligence dashboards. With modern generative AI, organizations are transitioning to autonomous Text-to-SQL data agents capable of translating ambiguous business questions into valid SQL queries, …
Handling Tool Calling Errors, Retries, and Fallbacks in Autonomous AI Agents with Python
In autonomous artificial intelligence systems, Large Language Models (LLMs) do not operate in a vacuum. To perform real-world work, agents rely on tool calling (also known as function calling) to inspect production databases, execute shell commands, retrieve live API payloads, …
Fixing Common LangChain Memory Deprecation and Migration to LangGraph – Short note
When building modern Python applications and AI pipelines, engineers frequently need a fast, reliable solution for langchain conversationbuffermemory deprecated. Instead of sifting through massive frameworks, here is the direct, copy-paste implementation with error handling.…
Connecting Claude & AI Agents to Custom Local MCP Tools in Python
The release of the open-source Model Context Protocol (MCP) by Anthropic has fundamentally solved the fragmented landscape of AI tool calling. Before MCP, connecting an LLM to your local database, developer terminal, or internal API required writing bespoke integration …









