Home Blog Engineering notes — Page 5 | Prarit Sidana Home Blog Projects Blog Thoughts, tutorials, and insights on development, technology, and more.
Media engineering React and TypeScript AI and retrieval Django backend Python automation DevOps and reliability A prompt edit changes behavior without a reproducible comparison. Store two prompt versions and synthetic test cases, then compare structured outputs from a deterministic stub.
A support-summary prompt includes unnecessary personal data. Transform synthetic ticket text by removing identifiers and record exactly which fields leave the application.
A repeated planning loop keeps using time and tokens. Use a local fake model loop with maximum steps and deadline checks, then record the stop reason.
Classify AI endpoint failures by transport, refusal, parsing and application stages so retries and user recovery match the actual failure.
Constrain AI lookup tools with bounded argument schemas, trusted tenant scope and explicit output fields, then test rejection and access cases.
Bind human approval to an exact AI proposal revision, enforce permitted state transitions, and test edits, retries and competing workers.
Validate AI-generated task JSON before using it, reject unknown actions and fields, and keep schema checks separate from authorization.
Trace RAG document deletion across metadata, vectors and caches, deny new reads promptly, and test delayed-ingestion races.
Audit PDF extraction against rendered pages before RAG indexing, checking reading order, tables, image-only pages and processing limits.
Migrate embedding models with separate matched indexes, controlled backfill and versioned routing, while testing quality and rollback behavior.
Treat retrieved instructions as untrusted evidence, constrain downstream tools and rendering, and use harmless fixtures to test boundaries.
Evaluate RAG changes against fixed questions and source revisions, define retrieval metrics precisely, and retain actionable failure records.
1 2 3 4 5 6 7 8 9 10 11