Skip to content

Blog

Improved Observability

Lately, I’ve been using Langfuse for observability. The tool is pretty cool to observe your LLM applications, track costs, etc. It even has an evaluation feature, but I wouldn’t say that it’s as best as the other features. Let’s say that I don’t think that evaluation is the main goal of Langfuse. Anyway. While playing around, I was a bit frustrated by the Python SDK. It provides a high level abstraction to track the components of your app (through a decorator) but I don’t find this feature to be consistent. Some elements really annoyed me. One can argue that I should then stick to the low-level API, but it would increase verbosity and code duplication, so I don’t think it’s a good idea. Good libraries provide good abstractions. LangChain is a perfect counterexample. Perhaps I’ll write something about it someday…

Read more →

September 8, 2024

MyPy & PEP 702 (@deprecated)

I tend to use Python a lot, both in my job and personal projects. It's a good language, but it still lacks some useful features. However, it seems that Python is evolving in a good direction. The recent PEP 695 signals a promising step forward in my opinion (despite it won't probably be supported by MyPy any time soon). Alongside this progression, modern code checkers like linters (such as Ruff), formatters (like Black), and type checkers (including MyPy) have become indispensable allies to improve your codebase (and also save a tremendous amount of time by spotting mistakes before running any code).

Read more →

March 16, 2024