Posts tagged “testing”
-
How do you know an LLM feature works before you ship it?
'It looked good on ten examples' is how LLM features fail in production. Golden sets, held-out data, LLM-as-judge and production signals, compared, with real numbers from a document-extraction pipeline: zero errors on the data it was tuned on, 0.4% on data it had never seen.
-
Test-first or test-after: what actually reduces bugs?
Writing the test first helps most when the expected behaviour is clear and the design isn't: parsers, rules, bug fixes. Property-based tests find edge cases nobody thought of. Integration tests against real dependencies catch what unit tests can't. How to combine them.
-
How do you keep tenants apart when they share one database?
How I let Postgres, not application code, keep tenants apart, so a forgotten tenant filter returns nothing instead of another customer's data: FORCE, non-owner roles, transaction-local settings, fail-closed policies, and tests that prove it.