
Andreas Nigg
Co-Founder, Pondhouse Data
Andreas has spent more than eight years building data applications. At Pondhouse Data he designs and ships AI systems and integrates them into complex, real-world environments.
Areas of expertise
- Retrieval-Augmented Generation (RAG)
- AI Agents
- Model Context Protocol (MCP)
- Microsoft Azure AI
- Self-Hosted LLMs
- Document Extraction
- Data Engineering
Articles by Andreas Nigg (55)
Timestral tutorial: time series forecasting without training your own model
Mistral's time series model Timestral, tested hands-on: forecasts with covariates, anomalies and a thousand series without training, with code and results.
· 21 min read
Engineering drawing search with AI: what Kuken built and how to build your own
How Kuken made 70 years of engineering drawings searchable with AI, and how to build the same pattern with a vision model, Postgres and image search.
· 18 min read
Text-to-SQL with a semantic layer: NVIDIA Auto Ontology tested
How NVIDIA Auto Ontology grounds text-to-SQL in an automatically generated semantic layer, what worked in our test and where it still falls short.
· 9 min read
Confluence to LLM Wiki: Our Self-Maintaining Company Wiki
How we moved 310 Confluence pages into a Git-based company wiki that an LLM agent updates, cross-links and checks, with a human reviewing every change.
· 17 min read
Using SharePoint Lists as Knowledge Sources in Microsoft Copilot Studio Agents
Copilot Studio loads SharePoint lists whole. Two agent flow tools fix that: one reads internal column names, one fetches only matching items via OData.
· 10 min read
Running GLM-4.7-Flash Locally with OpenCode
Run GLM-4.7-Flash, a 30B MoE coding model, on a 16GB GPU: build llama.cpp for NVIDIA or AMD, serve the Q4 GGUF and connect it to OpenCode.
· 4 min read
Orchestrating Complex Tasks with Microsoft Agent Framework Workflows
Build graph-based Microsoft Agent Framework Workflows in Python: a four-step IT ticket pipeline, the DevUI, and conditional edges for urgent tickets.
· 14 min read
Building Enterprise-Grade AI Agents with Microsoft's Agent Framework - A Practical Guide
Microsoft Agent Framework explained: tools, workflows, state and checkpointing, then a Python IT helpdesk agent with Dev UI, FastAPI and Docker.
· 12 min read
Running an MCP Server for BigQuery: Connect Your Data Warehouse to AI Agents
Connect AI agents to BigQuery via MCP: Google's managed remote server vs. MCP Toolbox 1.16, with setup, guardrails, costs and a 7-question agent test.
· 13 min read
Introduction to RAGFlow: Open-Source RAG Engine with Deep Document Understanding
RAGFlow 1.0 installed with Docker and tested on a 147-page PDF: setup, OpenAI models, DeepDoc vs. a vision LLM parser, RAM usage and answer accuracy.
· 15 min read
LLM Sampling with FastMCP: Using Client LLMs for Scalable AI Workflows in your MCP
How MCP sampling lets a FastMCP server hand its LLM calls to the client: ctx.sample on the server, a sampling handler on the client, with code.
· 4 min read
Automating MCP Server Creation from OpenAPI and FastAPI
Generate an MCP server from an existing OpenAPI spec or FastAPI app with FastMCP: route mapping, timeouts, parameter handling and code examples.
· 6 min read
Creating an MCP Server Using FastMCP: A Comprehensive Guide
What an MCP server is, how it differs from an API, and how to build one in Python with FastMCP: resources, templates, tools, progress reporting and a client.
· 12 min read
What Is Langfuse? Open-Source LLM Observability, Self-Hosted
Self-host Langfuse with Docker Compose and use it to trace OpenAI calls, group them into sessions, score outputs and version your prompts.
· 13 min read
Integrating n8n with Open WebUI: Building advanced AI chatbots and workflows
Connect Open WebUI to n8n with a webhook workflow and a Python pipe function, so chat messages trigger n8n workflows. Setup steps and full code.
· 10 min read
Building High-Quality AI Agent Systems: Best Practices
Why multi-agent LLM systems fail, based on a study of 14 failure modes, and the design practices that make AI agent systems more reliable.
· 22 min read
Building Powerful AI Agents with smolagents: A Minimalist Approach
smolagents is Hugging Face's minimal agent library: code agents that act in Python, sandboxed execution, support for any LLM and tips for better agents.
· 8 min read
DeepSeek R1 On-Prem Setup: Run Advanced AI Models on Your Hardware with SGLang
Run DeepSeek-R1-Distill-Qwen-32B on two 24GB GPUs with SGLang: install, model download, Docker setup and OpenAI-compatible API calls in Python.
· 5 min read
Building Better AI Applications with LLM Tracing using Opik
Self-host Opik, Comet's open-source LLM tracing tool, trace OpenAI, PydanticAI and LangChain calls, track costs and score traces with an LLM judge.
· 9 min read
Building AI Agents with n8n: Low-Code approach to AI workflows
Build a self-hosted AI agent in n8n 2.46: order lookups in Postgres, chat memory, email drafts behind human approval. With screenshots, costs and pitfalls.
· 17 min read
Enhancing Self-Made Agent with Memory: Keeping Context for Better Conversations
Add PostgreSQL-backed memory to a self-made Python AI agent: store every interaction, summarize long histories with GPT-4o and feed context into the prompt.
· 6 min read
Advanced Self-Made Agent: Building a Smarter, Multi-Step AI Agent
Extend a framework-free Python AI agent with an AgentState enum, a multi-step reasoning loop and clarifying questions to the user. Full code included.
· 6 min read
How to Build AI Agents Without Frameworks: A Step-by-Step Guide
Build an AI agent in plain Python with GPT-4o function calling: a PostgreSQL tool, a Wikipedia tool, a tool-call loop and PostgreSQL memory.
· 9 min read
Azure AI Search RAG Tutorial: Complete Guide to Building Enterprise Retrieval Systems
RAG on Azure, tested: index a 144-page PDF with Azure AI Search, run hybrid search with semantic ranker and answer with citations in Python. With costs.
· 16 min read
Azure OpenAI Content Filters: The Good, The Bad, and The Workarounds
Azure OpenAI content filters slow down requests and block legitimate business prompts. How they work, and how to set lower thresholds and asynchronous mode.
· 7 min read
Crawl4AI Docker Tutorial: Crawl Websites for LLMs via REST API
Build and run Crawl4AI in Docker, crawl pages via its REST API to get markdown, metadata and links, and extract data with an LLM through LiteLLM.
· 7 min read
Late Chunking: Improving RAG Performance with Context-Aware Embeddings
Late chunking embeds the whole document first, then pools token embeddings into chunks. Python code with jina-embeddings-v3 and a similarity comparison.
· 7 min read
DSPy Tutorial: Build Better AI Systems with Automated Prompt Optimization
A hands-on DSPy tutorial: the 8-step workflow, metrics and optimizers, and a summarization example where optimization lifted the score from 42% to 68%.
· 12 min read
What is Libre Chat? The best alternative to Open WebUI and ChatGPT
LibreChat is an open-source, self-hosted ChatGPT alternative. We installed v0.8.8 with Docker and tested agents, MCP, file search, artifacts and web search.
· 13 min read
How to create LLM tools from any Python SDK using langchain-autotools
langchain-autotools turns a Python SDK client into LangChain agent tools. Covers setup, CrudControls for picking functions and an Azure Blob Storage example.
· 7 min read
How to crawl websites for LLMs - using Firecrawl
Firecrawl turns websites into LLM-ready markdown. Python examples for scraping, crawling, Pydantic-based extraction, LangChain and self-hosting with Docker.
· 5 min read
Azure AI Studio: How to evaluate and upgrade your models, using the Prompt Flow SDK
Check a new Azure OpenAI model against your current one before upgrading, using the Prompt Flow evaluation SDK, a GPT-4o judge and Azure AI Studio.
· 12 min read
RouteLLM: Cut LLM Costs by Routing Prompts to the Right Model
RouteLLM sends each prompt to a cheap or a strong LLM. How it works, how to calibrate the router threshold, and how to run it as an OpenAI-compatible server.
· 9 min read
RAG, Embeddings and Vector Search with Google BigQuery
Store embeddings in BigQuery, create them with ML.GENERATE_EMBEDDING, query them with VECTOR_SEARCH and run a full RAG pipeline with Gemini in one SQL query.
· 12 min read
Parsing pdf, word and excel documents with GPT-4o
Parse PDF, Word and Excel files with GPT-4o vision: render each page as an image, extract the text in Python, for about 0.32 to 0.62 cents per page.
· 9 min read
How to classify, describe and analyze images using GPT-4o vision
Python examples for sending images to GPT-4o via the OpenAI API to classify, describe and analyze them, plus detail modes and per-image costs.
· 8 min read
What is Open WebUI? The best self hosted, open source ChatGPT alternative?
Open WebUI is a free, self-hosted ChatGPT-style interface. We installed v0.13.0, tested RAG, MCP and web search, and explain the license and pricing.
· 15 min read
What is the VertexAI model garden - a practical example: Deploying Llama 3.1 and Claude 3.5 Sonnet
What Vertex AI Model Garden is and how to use it: Claude 3.5 Sonnet and Llama 3.1 as pay-per-use API services, CLIP on a VM, and Hugging Face models.
· 10 min read
Fine-tune OpenAI's GPT-4o mini LLM AI model
Fine-tune GPT-4o mini in the OpenAI dashboard: the JSONL training format, how many examples you need, job settings, costs and calling the model from Python.
· 8 min read
Neo4j LLM Knowledge Graph Builder: How to Create Knowledge Graphs for RAG
Set up the Neo4j LLM Knowledge Graph Builder on AuraDB or Docker, turn a web page into a knowledge graph and query it with GraphRAG in the built-in chat.
· 10 min read
BigQuery Text-to-SQL: Query Your Database in Natural Language
Build a text-to-SQL agent for BigQuery in Python: GPT-4o writes the SQL, errors are fed back for self-correction, and RAG picks relevant columns.
· 11 min read
How to finetune LLMs
Finetune Llama 3 8B on a single GPU with QLoRA, bitsandbytes and TRL: dataset formats, LoRA and training parameters, full Python script and inference.
· 13 min read
LLM Document Extraction: How to use AI to get structured data from legacy documents
Extract text and tables from complex PDFs with an open-source vision LLM: render each page as an image and prompt MiniCPM-Llama3-V 2.5. Python code included.
· 9 min read
Using AI directly from your database - with PostgreSQL and pgai
Call OpenAI from PostgreSQL with the pgai extension: create embeddings, summaries and content moderation in plain SQL, plus triggers that embed new rows.
· 10 min read
LLM Safety with Llama Guard 2
Llama Guard 2 is Meta's 8B model for checking LLM prompts and responses. The main attack vectors, its 11 risk categories and how to run it.
· 9 min read
How to use AI to create a PowerPoint presentation?
Let GPT-4 write python-pptx code that builds a PowerPoint deck from your company documents via RAG, using your own corporate template.
· 7 min read
What is the Google Vertex AI Agent Builder - A practical example: Google Search with Slack.
What Vertex AI Agent Builder is and what Google calls it today, with a no-code example: index Slack messages and build a Gemini search app.
· 10 min read
Chat with your Confluence: A Step-by-Step Guide using Airbyte, Langchain and PGVector
Build a Confluence chatbot in Python: load pages with PyAirbyte and LangChain's AirbyteLoader, store embeddings in PGVector, answer with GPT-4 Turbo.
· 8 min read
Advanced RAG: Improving Retrieval-Augmented Generation with Hypothetical Document Embeddings (HyDE)
HyDE has an LLM write a fake answer document and searches with its embedding instead of the query's. How it works, plus a LlamaIndex example.
· 6 min read
11 Proven Strategies to Reduce Large Language Model (LLM) Costs
Eleven ways to cut LLM costs, from shorter prompts and semantic caching to quantization, distillation, RAG and chat summaries, plus which one to try first.
· 16 min read
Advanced RAG: Increase RAG Quality with ColBERT Reranker and llamaindex
Add a ColBERT reranker to a LlamaIndex RAG pipeline: why semantic search ranks the wrong chunks first, and the Python code to rerank them before the LLM call.
· 6 min read
Advanced RAG: Recursive Retrieval with llamaindex
Recursive retrieval in LlamaIndex links PDF tables to pandas query engines, so RAG can answer questions from table data. Step-by-step Python example.
· 8 min read
vLLM with HTTPS: Self-Host an LLM Behind a Caddy Reverse Proxy
Serve an open-source LLM with vLLM's OpenAI-compatible Docker image and put Caddy in front as a reverse proxy for automatic HTTPS with Let's Encrypt.
· 7 min read
RAG Evaluation with Ragas: How to Measure RAG Pipeline Quality
Evaluate a RAG pipeline with Ragas: generate a test set from your documents, then score faithfulness, answer relevancy, context recall and context precision.
· 8 min read
Integrating enterprise knowledge with LLMs
Fine-tuning, training your own model or RAG: how each way of adding company knowledge to an LLM works, its pros and cons, and why RAG usually wins.
· 9 min read