K'AI Phase 1: DOH Defense Dev Log
(Gemini 2.5 Flash API)
K'AI Phase 1: DOH Defense Dev Log
(Gemini 2.5 Flash API)
๐ May 28, 2026 | ๐ ๏ธ [STABILITY & LOGIC UPDATE] OCR Pipeline Optimization
Payload Compression & Auto-Trigger: Restored the seamless auto-scan UI. Implemented robust frontend image compression (restricting API payloads to under 1MB), completely resolving serverless timeout freezes and workspace credit exhaustion issues during high-res uploads.
API Routing & Error Handling: Transitioned the core vision pipeline to the gemini-2.5-flash model for high-speed, stable throughput. Integrated exponential backoff retry logic to gracefully handle rate limit (429) errors without compromising user experience.
Precision Data Mapping: Refined prompt engineering for NYC Permit extraction. The AI now explicitly recognizes "Date of Submission" and accurately maps it to the "Issue Date" field, permanently preventing critical misclassifications into the "Expiry Date" category.
๐ May 17, 2026 | ๐ [NEW FEATURE] Seafood Tag Auto-Extraction & UI Enhancements
AI Vision Upgrade: Implemented advanced 'Text Sniper' regex logic, enabling the AI to automatically recognize, extract, and interpret complex Harvest Location codes and Country of Origin from supplier tags.
UI / UX Streamlining: Decluttered the document cards by hiding background DOH compliance dates (90-day legal retention). Introduced dedicated tabs to cleanly separate 'Active' daily inventory from 'Archived' compliance tags.
Data Override Capability: Added manual 'Edit' functionality across all document categories (Seafood, Permits, Certifications) to ensure 100% data accuracy and user control.