# Bartosz Mikulski > AI & MLOps Engineer. I build production-ready data and ML systems that survive the real world. Specialist in Reliable RAG, MLOps, and Data Platforms. The articles are written by Bartosz Mikulski. Every article has a Markdown copy at its URL followed by `.md`. ## Book: The Machine Learning They Didn't Teach You Why your models break, and how to look at your data until they don't. If you can call .fit() but don't trust the result, this is the classical ML class you missed: taught through real failures, in scikit-learn. - [The Machine Learning They Didn't Teach You](https://mikulskibartosz.name/ml-book/): the introduction and the table of contents - [1. The regression problem we are going to (ab)use](https://mikulskibartosz.name/ml-book/problem-description/) - [2. How to tell if you are right or wrong](https://mikulskibartosz.name/ml-book/how-to-tell-if-you-are-right-or-wrong/) - [3. How do you stay right?](https://mikulskibartosz.name/ml-book/how-do-you-stay-right/) - [4. The machine learning process](https://mikulskibartosz.name/ml-book/ml-process/) - [5. Improving the model](https://mikulskibartosz.name/ml-book/feature-engineering/) - [6. Inside the linear regression](https://mikulskibartosz.name/ml-book/linear-regression/) - [7. Bending the line](https://mikulskibartosz.name/ml-book/overfitting/) - [8. Regularization and tuning](https://mikulskibartosz.name/ml-book/regularization/) - [9. Models that don't draw lines](https://mikulskibartosz.name/ml-book/nearest-neighbors/) - [10. Many trees](https://mikulskibartosz.name/ml-book/ensembles/) - [11. The classification problem](https://mikulskibartosz.name/ml-book/classification/) - [12. Missing values](https://mikulskibartosz.name/ml-book/missing-values/) - [13. Is it right? Classification metrics](https://mikulskibartosz.name/ml-book/classification-metrics/) - [14. The first classifiers and their mistakes](https://mikulskibartosz.name/ml-book/first-classifiers/) - [15. Imbalanced datasets](https://mikulskibartosz.name/ml-book/imbalanced-datasets/) - [16. Feature selection](https://mikulskibartosz.name/ml-book/feature-selection/) - [17. Hyperparameter search](https://mikulskibartosz.name/ml-book/hyperparameter-search/) - [18. Explainability: Why did the model say that?](https://mikulskibartosz.name/ml-book/explainability/) - [19. Clustering: groups nobody named](https://mikulskibartosz.name/ml-book/clustering/) - [20. The rules](https://mikulskibartosz.name/ml-book/rules/) ## Featured articles - [The AI Hallucination Crisis in Fintech](https://mikulskibartosz.name/ai-hallucination-crisis-in-fintech.md): AI hallucinations are fintech's biggest risk. Discover why most deployments stall and what CTOs can do to secure their AI stack. - [A Framework for Measuring and Fixing AI Hallucinations](https://mikulskibartosz.name/fix-ai-hallucinations.md): AI hallucinations are killing trust in your product. This guide helps you measure, debug, and prevent them — starting today. - [Systematic AI Implementation for Production Reliability: 99.7% Accuracy in 4 Days, Eliminating €20M Risk (Case Study)](https://mikulskibartosz.name/systematic-ai-implementation-production-reliability-case-study.md): Learn how to implement production-ready AI systems using a systematic approach focusing on error analysis rather than complex models. This case study shows how to transform unreliable AI prototypes into trusted production systems that eliminate regulatory risks and deliver real business value. - [How to Make AI Evaluation Affordable: Research-Backed Methods to Cut LLM Evaluation Costs](https://mikulskibartosz.name/affordable-ai-evaluation.md): Why are your AI evaluation costs spiraling out of control, and what are the proven methods to reduce them without sacrificing quality? - [The Hidden Reason Your RAG System Is Failing - The Problems Caused by Approximate Nearest Neighbor Search in Vector Databases](https://mikulskibartosz.name/approximate-nearest-neighbor-vs-rag.md): Discover why your RAG system might be failing due to Approximate Nearest Neighbor search limitations in vector databases. Learn how compute budgets affect search accuracy, why metadata filters complicate retrieval, and implement practical solutions to dramatically improve your RAG performance. - [Why is it so hard to correctly estimate AI projects?](https://mikulskibartosz.name/estimating-ai-projects.md): Why can't you estimate an AI project correctly and can you do anything about it? - [Building Reliable AI: A Testing-First Approach](https://mikulskibartosz.name/building-reliable-ai.md): Learn how to properly test AI systems using familiar software testing concepts. Discover key metrics, alignment checks, and robustness testing strategies for reliable AI deployment. - [From API Wrappers to Reliable AI: Essential MLOps Practices for LLM Applications](https://mikulskibartosz.name/ai-isnt-just-software.md): API wrapper or production-ready AI? Learn how proper LLMOps separates prototypes from reliable applications - [Troubleshooting AI Agents: Advanced Data-Driven Techniques of Improving AI Agent Performance](https://mikulskibartosz.name/improve-ai-agents.md): Expert strategies for improving AI agent performance through better data retrieval, query generation, automated decision-making process, and response generation. The article covers data collection, metrics, and techniques to improve the agent's performance. - [Comprehensive Guide to AI Workflow Design Patterns with PydanticAI code examples](https://mikulskibartosz.name/ai-workflow-design-patterns.md): Learn how to implement AI workflows and autonomous agents with PydanticAI. This guide shows an example implementation of patterns described in the Anthropic article 'Building effective agents' such as prompt chaining, routing, parallelization, and orchestrator-workers. - [How Much Data Do You Need to Improve RAG Performance?](https://mikulskibartosz.name/how-much-data-to-improve-rag.md): A data-driven approach for improving RAG performance. Learn how to gather data and how much data you need for RAG, fine-tuning LLM, and training a specialized LLM from scratch. - [The Ultimate 2025 Guide to Prompt Engineering](https://mikulskibartosz.name/ultimate-guide-to-prompt-engineering.md): Discover the difference between proven prompt engineering techniques and tricks ## Optional - [All articles](https://mikulskibartosz.name/blog/): the full archive, newest first - [Sitemap](https://mikulskibartosz.name/sitemap.xml): every page of the site - [AI use cases](https://mikulskibartosz.name/ai-use-cases/) - [About the author](https://mikulskibartosz.name/about)