Data Engineer ⋅ Perfecting Python & SQL ⋅ Mastering Vim ⋅ Obsessed with Efficiency ⋅ Using AI/ML to Get Things Done ⋅ Building Wealth Doing What I Love
Friday brings #Python
Use itertools.batched() to split an iterable into chunks without turning it into a list first. The last batch can be smaller. Python 3.12+.
The best break from AI is still a walk in the woods where nobody says the word “tokens.”
(P.S. AI generated the post and the picture. So much for taking a break. 😁)
Monday brings #AI
What if we wrote laws instead of tests? That’s the idea behind Bend 2: define mathematical properties, and the compiler verifies proofs the code obeys them.
Great for AI-generated code: AI writes it - and proves it.
https://t.co/BSHwtINMOz
Since becoming a father, I’ve had back pain.
It turns out I don’t have a major issue with my spine. However, I should be going to the gym more often so my back works as it should.
@utrokrasit У себя вижу такое что сеньоры с продуктовым пониманием гоняют ИИ как нужно. Не сеньоры или те кто не совсем понимает «зачем» третья токенов больше, а выхлопа меньше.
Is there a point in continuing to write posts about #Python on Fridays? I’m starting to think they aren’t that useful. Maybe I should shift focus from Python tricks to more useful Python AI content.
@levelsio We are going to have a few big techs which provide you anything. You just chose the one and use. The only issue you don’t have money, because you don’t have a job.
Monday brings #AI
The easiest way to improve what AI did is asking it afterward to identify 3-5 issues with the solution. There is a caveat that AI will not always be able to find what's bad. The key here is to have some context and decide what is bad and what is good.
Friday brings #Python
Define AI tasks in Python with typed inputs/outputs - no messy prompts.
Here, DSPy uses an LLM to classify ad campaigns (awareness, conversion, retargeting), then auto-optimizes the prompts using evaluation data.