Production AI Engineering: Data Pipelines, Prompt Optimization and Caching

Episode 5 62 min

Bartosz Mikulski AI and data engineer

Episode 5 · Production AI Engineering: Data Pipelines, Prompt Optimization and Caching

62 min

What we talked about

Bartosz Mikulski is an AI and data engineer who helps teams move AI projects from a good demo to production by building tests and reliable pipelines. He started as a Java developer, moved into data engineering and then into AI engineering. He has written about 480 blog posts, and he says the blog brings him clients. Alexey invites him to talk about testing data pipelines, prompt engineering and the tools he uses day to day.

Bartosz says that testing matters because a wrong number that nobody notices can undermine trust in a data team. He describes snapshot tests and integration tests for pipelines, and he uses Spark for large data. Alexey mentions tools such as Great Expectations and Soda. Bartosz says he is not aware of a tool for every type of pipeline, and that Spark works for him. On AI, he says that data engineers can prepare data for fine-tuning, and that using AI inside a pipeline is risky, because hallucinations create bugs that are hard to find.

On prompts, Bartosz says the technique that works across models is giving examples, known as in-context learning, for instance to get sentiment results in a specific JSON format. An evaluation dataset shows when adding more examples stops helping. He has started reading about prompt compression, which shortens a prompt while keeping its effect, and says it is different from prompt caching. He has used DeepSeek only as one of the models inside Perplexity.

Bartosz describes a Chrome extension that used AI to decide which LinkedIn profiles were worth a personalized invitation. The extension calls a backend service. He kept the AI logic in the backend because he was not familiar with browser extensions. He uses Cursor as his coding assistant and says it helps with small functions, where the developer writes a signature and a docstring and the assistant fills in the rest. Bartosz also uses Perplexity for search, and he publishes his blog with a static site generator on GitHub Pages.

Bartosz explains that the blog started without a goal of attracting clients, but it now brings in clients and workshops. He says he has never got AI to write in a style he would present as his own, so he only asks ChatGPT for help when he is stuck, for example on splitting a long sentence, and writes drafts in Obsidian, which does not try to finish his sentences.

Chapters

  1. 0:00 Episode Opening & Guest Overview (Data Intensive AI) 2 min
  2. 2:02 Book Contribution Clarified & Testing Focus 2 min
  3. 4:00 Career Path: Java → Data Engineering → AI Engineering 2 min
  4. 6:04 Publishing Routine: Blogging Frequency & Content Practice 3 min
  5. 9:05 Data Trust: Why Testing Prevents "This Number Doesn't Look Correct" 3 min
  6. 11:47 Test Strategy for Data Pipelines: Snapshot & Integration Testing 1 min
  7. 13:14 Testing Tools: Great Expectations, Soda, SQL Tests vs Spark Tests 4 min
  8. 17:10 Technology Choice: When to Use Apache Spark 1 min
  9. 18:38 Data Engineering’s Role in AI: Preprocessing & Fine-Tuning Data 3 min
  10. 21:46 Invisible AI Use Cases: Augmented Generation & Review Analysis 3 min
  11. 25:13 Prompt Engineering Basics: In-Context Learning & Examples 3 min
  12. 28:16 Prompt Evaluation: Formatting, Examples, and Cost Tradeoffs 2 min
  13. 30:00 Prompt Compression: Token Optimization Techniques 2 min
  14. 31:45 Prompt Caching & Model Efficiency (attention caching, Claude) 2 min
  15. 33:42 Open-Source Models & Tools Experience (DeepSeek, Perplexity) 2 min
  16. 35:54 AI for Lead Scoring: LinkedIn Automation & Qualification 5 min
  17. 41:04 Chrome Extension Architecture: Backend AI Integration Pattern 1 min
  18. 42:05 Coding Assistants: Cursor Workflow & Productivity Boosts 3 min
  19. 44:38 Code AI Comparison: Cursor vs GitHub Copilot & Alternatives 3 min
  20. 47:19 Search-Focused Assistants: Using Perplexity & Tool Selection 5 min
  21. 52:09 Website Hosting: Static Site Generators & GitHub Pages 1 min
  22. 53:10 Blogging as Business: Attracting Clients & Teaching Workshops 3 min
  23. 56:17 AI-Assisted Writing: Drafting, Rewriting, and Maintaining Voice 4 min
  24. 1:00:21 Episode Wrap-Up & Guest Resources (blog link invitation) 1 min

Bartosz Mikulski AI and data engineer

Bartosz Mikulski is an AI and data engineer who specializes in moving AI projects from the good-enough-for-a-demo phase to production by building a testing infrastructure and fixing the issues detected by tests. He teaches programmers and non-programmers how to use AI, contributed a chapter to the book 97 Things Every Programmer Should Know, and has spoken at several conferences, including Data Natives, Berlin Buzzwords, and Global AI Developer Days.

Topics in this episode

The wiki pages this conversation is filed under, the strongest first.

AI

AI across machine learning, generative AI, agents, production systems, evaluation, infrastructure, and governance.

Data Engineering

Data engineering across pipelines, platforms, data quality, role boundaries, business enablement, and the shift toward AI-ready data systems.

LLMs

Large language models with links to retrieval, agents, evaluation, production, and security pages.

MLOps

Reference page for MLOps as the operating discipline for production machine learning systems.

Tools

How data and ML teams choose and sustain tools across data engineering, MLOps, search, RAG, open source, and developer experience.

AI Coding Tools

How Cursor, Copilot, Claude Code, notebook-to-agent workflows, and human review shape AI-generated code.

AI Engineer Role

The AI engineer role across product software, RAG, agents, evaluation, production reliability, and role boundaries.

AI Engineering

AI engineering is the discipline of shipping LLM applications, RAG systems, agents, evaluations, and production AI products.

AI Engineering Roadmap

A roadmap for learning AI engineering through software foundations, LLM applications, RAG, evaluation, agents, LLMOps, and production ownership.

AI Infrastructure

Inference APIs, retrieval, evaluation, tooling, cost, and runtime operations behind LLM and AI product systems.

AI Tooling

How teams choose and operate AI tooling for model APIs, open-source LLMs, RAG, prompts, agents, evaluation, and deployment.

AI Tools Workflow Guide

How data professionals integrate AI tools into daily work, keep reviews in place, and add evaluation and privacy habits around repeated tasks.

AI in Business Intelligence

How AI changes BI dashboards, metrics, semantic layers, governance, and decision support without replacing trusted data products.

Agent Engineering

Agent engineering across workflow design, tools, retrieval, evaluation, guardrails, and production constraints.

Agent Ops

Agent Ops covers orchestration, guardrails, data lineage, deployment risks, and monitoring for AI agents in production.

Caching

Caching, prompt caching, context reuse, and model efficiency patterns for production AI systems.

Context Engineering

Designing effective LLM inputs with chunking strategies, metadata, wrappers, context windows, and context rot.

Dashboard Metric Checklist

Build a dashboard and metric-layer project around one decision, with metric specs, lineage, tests, BI use, and adoption evidence.

Data Freelancing Strategy

Business strategy for data freelancers: demand validation, market selection, acquisition channels, pricing risk, and growth paths.

Data Observability Guide

How data engineering teams use freshness, volume, schema, lineage, ownership, and runbooks to reduce data downtime.

DataOps

DataOps is the practice of making data delivery reviewable, testable, observable, and recoverable.

DataOps Pipeline Checks

Procedure for adding pipeline checks: data agreements, freshness, volume, schema, business rules, lineage, CI/CD, and recovery.

Developer Experience

How data, ML, and AI platforms reduce friction for the people who build with them.

Documentation

How documentation supports adoption, team memory, operations, onboarding, portfolio evidence, and open-source maintenance in data and ML work.

Generative AI

Generative AI as applied language, chatbot, agent, coding, and content-generation systems.

LLM Cost Optimization

Token optimization, prompt compression, prompt caching, model size tradeoffs, and cost-aware engineering for production LLM systems.

LLM Deployment

Deploying LLMs in production: open-source vs API models, serving challenges, model compression, inference optimization, model drift, and API risk.

LLM Production Patterns

Durable serving, reliability, context, cost, and guardrail patterns for production LLM systems.

LLM System Design Interview

Prepare for LLM system design interviews with production patterns for RAG, agents, evaluation, safety, latency, cost, and operations.

LLM Tools for Real Products

Choose LLM tools for real products across model APIs, open-source models, RAG, evaluation, agents, observability, cost, and review.

LLM and RAG Production Roadmap

A learning and rollout roadmap for teams moving from bounded LLM workflows to RAG, evaluation, agents, and production readiness.

LLMOps

LLMOps covers the lifecycle discipline for LLM applications: traces, evaluation sets, releases, guardrails, cost control, and feedback loops.

Long-Context LLM Evaluation

Long-context LLM evaluation and when retrieval, chunking, summarization, or prompt compression is the better fit.

Model Monitoring

How teams watch deployed models, diagnose drift, and assign ownership for production ML behavior.

Notebook Production Workflow

A workflow for turning AI or ML notebooks into production systems with decisions, reusable code, evaluation, serving, and monitoring.

Notebook to Production AI

How notebook experiments become reliable AI systems through product framing, evaluation, monitoring, and ownership.

Practices

Repeatable engineering habits for technical delivery across data, ML, AI, documentation, testing, and production ownership.

Production

Production for data, ML, and AI systems, covering deployment, monitoring, reliability, ownership, and cost.

Prompt Engineering

Prompt engineering techniques: role prompts, examples, structured output, evaluation, RAG context, and injection risks.

Prompt Injection Risks

How chatbot teams manage prompt injection, retrieval abuse, data leaks, hallucinations, legal exposure, red-team tests, and layered defenses.

QA to ML and Data Engineering

QA-to-ML and data engineering transition notes grounded in podcast examples on testing discipline, projects, cloud practice, and interviews.

Software Engineering

How software engineering discipline shapes data, ML, and AI systems through testing, interfaces, deployment, and maintainability.

Staff AI Engineer

Staff AI engineer scope across production AI, LLMOps, agents, and career leveling.

Technical Writing

Technical writing across documentation, public learning, portfolios, and developer education.

Testing

Testing data, ML, and AI systems through data checks, CI/CD, evaluation sets, monitoring, and production readiness practices.

Text-to-SQL

Podcast takeaways on text-to-SQL, metadata retrieval, governed metrics, query safety, and production testing for conversational BI.

Related books

Creating Intelligent Products

6 questions answered

Creating Intelligent Products: Generative AI, advanced analytics, smart automation teaches you how to successfully integrate AI into your software products. Written for product managers, team leads, and anyone responsible for the success of a software product or service, this practical book introduces Generative AI, AI-assisted data analytics, intelligent process automation, and more. You’ll love the examples from across many industries that illustrate the power and versatility of AI-powered solutions.

Janna Lipenkova

Artificial Intelligence with Python

4 questions answered

Artificial Intelligence with Python, Second Edition is an updated and expanded version of the bestselling guide to artificial intelligence using the latest version of Python 3.x. Not only does it provide you an introduction to artificial intelligence, this new edition goes further by giving you the tools you need to explore the amazing world of intelligent apps and create your own applications.

Prateek Joshi

Fundamentals of Data Engineering

31 questions answered

Data engineering has grown rapidly in the past decade, leaving many software engineers, data scientists, and analysts looking for a comprehensive view of this practice. With this practical book, you'll learn how to plan and build systems to serve the needs of your organization and customers by evaluating the best technologies available through the framework of the data engineering lifecycle.

Joe Reis Matthew Housley

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club