How kwang-min-n/fincomply_demo works
FinComply is an on-premises financial-compliance platform: staff submit marketing or terms content for hybrid review, ask citation-grounded regulatory questions, search legal material, analyze regulatory gaps, and manage approvals. The operating React SPA calls the FastAPI backend; services orchestrate domain workflows over replaceable adapters. The graph also retains documented parsing, tracking, and approval capabilities. Some routes and pages are represented by their existing directories because their implementation excerpts were not sampled; those relationships are cited only where documented or shown.
Main entry points: factory.py Dependency assembly · App.tsx React SPA · v1 Feature routes · search_service.py Hybrid search
Components 23
Staff experience
- React SPA
frontend/src/App.tsx - Review page
frontend/src/pages/ReviewPage.tsx - Search page
frontend/src/pages/SearchPage.tsx - Other feature pages
frontend/src/pages - API client
frontend/src/api/client.ts
API and identity
- Authentication
frontend/src/auth/AuthContext.tsx - FastAPI application
src/fincomply/api/app.py - Feature routes
src/fincomply/api/v1 - Dependency assembly
src/fincomply/factory.py
Compliance workflows
- Hybrid review
src/fincomply/services/review_service.py - Deterministic rules
src/fincomply/adapters/rules/json_engine.py - Approval workflow
src/fincomply/services/approval_service.py - Regulatory tracker
src/fincomply/services/tracker_service.py - Document parsing
src/fincomply/api/v1/parse.py
Regulatory knowledge
- Document ingestion
src/fincomply/services/ingestion_service.py - Hybrid search
src/fincomply/services/search_service.py - Grounded Q&A
src/fincomply/services/rag_service.py - LLM adapter
src/fincomply/adapters/llm/router.py
Domain and adapters
- Search and vector stores
src/fincomply/adapters/vectorstore/base.py - Citation graph
src/fincomply/adapters/graph/base.py - Lexical index
src/fincomply/adapters/searchindex/opensearch_store.py - Compliance domain
src/fincomply/domain/models.py
Other components
- Staff user
Connections 33
- Staff user → React SPA: uses
README.md - React SPA → Authentication: reads identity
frontend/src/App.tsx - React SPA → API client: creates
frontend/src/App.tsx - React SPA → Review page: routes to
frontend/src/App.tsx - React SPA → Search page: routes to
frontend/src/App.tsx - React SPA → Other feature pages: routes to
frontend/src/App.tsx - Review page → API client: calls
frontend/src/pages/ReviewPage.tsx - Search page → API client: calls
frontend/src/pages/SearchPage.tsx - API client → Feature routes: HTTP requests
frontend/src/api/client.ts - FastAPI application → Feature routes: registers
src/fincomply/api/app.py - Feature routes → Dependency assembly: resolves services
- Dependency assembly → Hybrid review: assembles
src/fincomply/factory.py - Dependency assembly → Approval workflow: assembles
src/fincomply/factory.py - Dependency assembly → Regulatory tracker: assembles
src/fincomply/factory.py - Dependency assembly → Document ingestion: assembles
src/fincomply/factory.py - Dependency assembly → Hybrid search: assembles
src/fincomply/factory.py - Dependency assembly → Grounded Q&A: assembles
src/fincomply/factory.py - Hybrid review → Deterministic rules: scans first
src/fincomply/services/review_service.py - Hybrid review → LLM adapter: requests analysis
src/fincomply/services/review_service.py - Document ingestion → Search and vector stores: indexes chunks
src/fincomply/services/ingestion_service.py - Document ingestion → Citation graph: indexes links
src/fincomply/services/ingestion_service.py - Document ingestion → Lexical index: indexes files
src/fincomply/services/ingestion_service.py - Hybrid search → Search and vector stores: retrieves vectors
src/fincomply/services/search_service.py - Hybrid search → Citation graph: expands citations
src/fincomply/services/search_service.py - Hybrid search → Lexical index: retrieves lexical hits
- Grounded Q&A → Hybrid search: gets evidence
src/fincomply/services/rag_service.py - Grounded Q&A → LLM adapter: generates grounded answer
- Hybrid review → Compliance domain: returns findings
- Hybrid search → Compliance domain: returns results
src/fincomply/services/search_service.py - Grounded Q&A → Compliance domain: returns citations
src/fincomply/services/rag_service.py - Feature routes → Document parsing: offers parsing
README.md - Feature routes → Regulatory tracker: offers tracking
README.md - Feature routes → Approval workflow: offers decisions
README.md