SEBI Debarred Entities Extraction — Regulatory Document Intelligence

Cloud-native event-driven RAG backend monitoring SEBI regulatory orders, routing multimodal PDFs via Camelot or Gemini Vision, scoring page relevance with FAISS, and extracting structured debarred PAN records using schema-constrained Gemini 2.5 Flash.

Problem

SEBI regularly publishes legal PDF orders debarring entities from securities markets. Compliance teams manually reviewed hundreds of pages per PDF to identify debarred individuals and extract PAN details—an expensive, error-prone process critical for KYC compliance.

Solution

Built an event-driven RAG pipeline on GCP (Pub/Sub, Cloud Run, GKE, Firestore) that automatically ingests regulatory PDFs. The system routes documents based on type (Camelot for text-native vs. Gemini Vision for scanned OCR), scores page relevance using FAISS vector search on SEBI-specific document patterns, and passes only highly relevant context into Gemini 2.5 Flash with schema enforcement for 100% structured PAN extraction.

Impact

Key features

Tech stack

System architecture

Trust boundary — Event-driven SEBI Regulatory Document Intelligence Pipeline. Event-driven pipeline routes each PDF by type, scores page relevance with FAISS, and returns schema-constrained extractions.

01 · Ingestion & Queue — Pub/Sub event pipeline

↓ SEBI order PDF → Concurrent Pub/Sub Queue

02 · Document Router — Multimodal parsing decision tree

↓ PDF content check → Camelot OR Gemini Vision

03 · Context Scoring (RAG) — FAISS page relevance search

↓ Extracted pages → Relevant context pages

04 · Structured Extraction — Gemini 2.5 Flash schema enforcement

↓ Relevant context → Validated JSON entities

05 · Persistence — Firestore compliance store

↓ PAN JSON → Firestore Database

Deliberately out of scope / Future Work

Control loops

Architecture highlights

What K Laxman learned

← All 27 projects by K Laxman

Explore more

GitHub · LinkedIn · Email