How kulikovka/banking-salary-intelligence-platform works
This repository is an early-stage banking salary intelligence platform. Its implemented workflow is operator-approved acquisition of official documents, immutable evidence storage, and provenance-checked corpus snapshots; the README explicitly says parsing into tariff content, comparison, search, and user-facing intelligence are not yet implemented. Auth and LLM components exist, but their product-workflow integration is not established by the sampled sources. The frontend and API are currently only a starter page and health endpoint. Edges below reflect shown calls or README statements; unsampled capabilities are represented without invented implementation links.
Main entry points: gateway.py Fetch gateway · ingestion/service.py Fetch and import · corpus/service.py Corpus snapshots · models.py Source catalog
Components 26
Document acquisition
- Fetch and import
backend/app/ingestion/service.py - Fetch gateway
backend/app/ingestion/gateway.py - Acquisition policy
backend/app/ingestion/policy.py - Format validation
backend/app/ingestion/formats.py - Official documents
- Immutable blob store
backend/app/storage/local.py
Source catalog
- Corpus snapshots
backend/app/corpus/service.py - Source catalog
backend/app/registry/models.py - Corpus records
backend/app/corpus/models.py - PostgreSQL
Salary intelligence
- Document parsers
backend/app/parsing - Tariff normalization
backend/app/tariffs/normalize.py - Tariff data
backend/app/tariffs/models.py - Salary comparison
backend/app/contracts/comparison.py - Salary search
backend/app/contracts/corpus.py
API and interface
- FastAPI application
backend/app/main.py - Web starter page
frontend/app/page.tsx
Identity and LLM
- Authentication API
backend/app/auth/api.py - Auth operations
backend/app/auth/service.py - Auth records
backend/app/auth/models.py - LLM client
backend/app/llm/base.py - Groq provider
backend/app/llm/groq.py - Fake LLM
backend/app/llm/fake.py - LLM contracts
backend/app/contracts/llm.py
Other components
- Operator
- Web user
Connections 25
- Operator → Fetch and import: requests fetch/import
README.md - Fetch and import → Fetch gateway: fetches through
backend/app/ingestion/service.py - Fetch and import → Source catalog: records acquisition
backend/app/ingestion/service.py - Fetch gateway → Acquisition policy: checks grants
backend/app/ingestion/gateway.py - Fetch gateway → Format validation: validates format
backend/app/ingestion/gateway.py - Fetch gateway → Official documents: retrieves documents
- Fetch gateway → Immutable blob store: stores verified bytes
backend/app/ingestion/gateway.py - Fetch and import → Immutable blob store: registers imported blobs
backend/app/ingestion/service.py - Corpus snapshots → Source catalog: validates provenance
backend/app/corpus/service.py - Corpus snapshots → Corpus records: creates snapshot members
backend/app/corpus/service.py - Corpus snapshots → Fetch and import: reuses ingestion
backend/app/corpus/service.py - Source catalog → PostgreSQL: persists catalog
- Corpus records → PostgreSQL: persists snapshots
- Document parsers → Tariff normalization: extracts tariff facts
- Tariff normalization → Tariff data: normalizes records
- Tariff data → Salary comparison: supplies tariff data
- Web user → Web starter page: opens page
README.md - Web starter page → FastAPI application: uses API
- FastAPI application → Authentication API: routes auth
- Authentication API → Auth operations: calls operations
backend/app/auth/api.py - Auth operations → Auth records: reads and writes
backend/app/auth/service.py - LLM client → LLM contracts: uses typed contracts
backend/app/llm/base.py - Groq provider → LLM client: implements client
backend/app/llm/groq.py - Fake LLM → LLM client: implements client
- Salary comparison → Salary search: supports document lookup