~/if.codes $ ls posts/ | wc -l → 47

#python

× clear tag · all posts
Agents
Nov 17, 2026 · 8 min readAn always-on agent skeleton in 150 lines: durable inbox, timers and outboxA runnable SQLite sketch of the pieces Anthropic's always-on agent guide names: a deduplicating inbox, one active worker, timers and an outbox, with tests for a crashed run and a duplicate webhook.#agents#python#sqlite#architecture
Agents
Nov 6, 2026 · 4 min readRendering video with code only: frames, ffmpeg and numpy-synthesised audio, step by stepA promo video needs no editor: draw frames in code, synthesise the soundtrack with numpy, join them with ffmpeg, then check loudness. A minimal pipeline modelled on an open-source Claude skill.#video#ffmpeg#python#automation
AI integrations
Nov 5, 2026 · 3 min readStructured data from photos with a local vision model: Ollama's format parameter and a Pydantic schemaTurn receipt or label photos into validated records with a local vision model: Ollama's format parameter, a Pydantic schema, temperature 0 and a retry loop.#ollama#vision#structured-output#pydantic
AI integrations
Oct 31, 2026 · 4 min readReliable JSON from a local model: schema-constrained output with Ollama and PydanticPass a Pydantic JSON schema to Ollama's format field, repeat it in the prompt, set temperature 0, and validate the reply. Copy-paste extraction snippet and retry loop.#ollama#pydantic#python#local-llm
AI integrations
Oct 2, 2026 · 10 min readSteal Palantir's agent stack: typed tools, one LLM gateway, swappable modelsAn X thread boils Palantir's AIP docs down to four agent patterns. We check each one against the docs, then build them in one stdlib-only Python file: typed business-object tools, a gateway that masks PII, caches and retries, a model set in config, and schedule/event/API triggers.#ai-agents#llm#python#architecture
RAG & search
Nov 23, 2024 · 3 min readTransforming Text into Vectors: OpenAI Embeddings in PythonLearn how to generate text embeddings with the OpenAI API in Python to power semantic search, recommendations, and more. Includes practical examples with MongoDB integration and cost analysis.#openai#ai#python#mongodb
// free quote

Read something you need? I’ll quote it for free.

RAG, AI integrations, agents or the backend underneath — tell me what you have and what should change. I read every request myself.

Free · no commitment

Tell me what you have. I’ll tell you what it takes.

1Describe the projectA few sentences is enough — about two minutes.
2I review itI read it myself and may ask a follow-up question.
3You get a free quoteScope, approach and estimate — yours to keep, no strings.
What kind of project is it?
Free and without obligation. Your details are used only to reply — see the privacy policy.