Problem
Saroya AI, built at TinyCheque, lets creators import their content so their AI avatar can answer questions about it. Content arrives from X, Reddit, YouTube, LinkedIn and file uploads (PDF, DOCX, XLSX, PPTX). Every piece of creator content needed a hard-delete path across every data store.
What I did
The ingestion pipeline normalises each source into one document format. File uploads go through Kreuzberg, a document-extraction library that runs its own OCR (optical character recognition). Every document is tracked through its lifecycle: ingestion, embedding, indexing and deletion.
A delete event removes everything across three stores: Postgres rows and their pgvector embeddings (pgvector is a Postgres extension), objects on Cloudflare R2 and the Redis cache.
Before a creator’s content goes live, a mock KYC flow I built checks their ID. It is a prototype, not a certified provider. The creator uploads a PAN card, Aadhaar card or driving licence (front only for PAN and driving licence; front and back for Aadhaar). Kreuzberg’s OCR extracts the name and ID number. An ID number that has already been used is blocked as already uploaded, and the name on the ID must match the name used at sign-up: pass or fail.
Architecture
Limitations
The deletion audit is manual today. KYC is a mock, not a certified provider. OCR quality varies with document format and image resolution. Source code is confidential.