Skip to content

Blog

Optimizing LLM Request Costs: Practical Methods

Cover: Optimizing LLM Request Costs: Practical Methods The cost of LLM requests is one of the main expenses in AI products. Every token costs money, and suboptimal prompts and architecture can double the bill. In this article, I will explore practical methods to reduce costs on language model APIs: from caching to model selection.

Observability Stack for LLM Applications: From Logs to Tracing

Cover: Observability Stack for LLM Applications: From Logs to Tracing When an LLM application moves beyond the notebook, the question arises: what is happening inside the system at any given moment? Without observability, it is impossible to understand why the model returned the wrong answer, how much each request costs, and where the bottleneck lies. In this article, I will break down the practical observability stack for LLM applications: from simple logging to full tracing with quality assessment.

Evaluating LLMs in Practice: What to Measure and How to Interpret

Cover: Evaluating LLMs in Practice: What to Measure and How to Interpret

Evaluating the quality of LLMs is a non-trivial task. Unlike classical machine learning, where metrics are clearly defined, generative models require a combination of automatic and manual methods. In this article, I will discuss which metrics to use depending on the task, how to calculate and interpret them, and how to avoid common pitfalls.

Structured LLM Output: From JSON to Strict Schemas

Cover: Structured LLM Output: From JSON to Strict Schemas LLMs naturally generate text, but for integration into software systems, structured data such as JSON, YAML, or XML is required. Without format control, model responses are unpredictable: extra explanations, invalid JSON, missing fields. In this article, I will discuss methods for obtaining strict structured output, their advantages, and limitations.