# sknetworks-family-aicamp/skn34-4th-3team architecture

> Architecture diagram of the GitHub repository sknetworks-family-aicamp/skn34-4th-3team, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sknetworks-family-aicamp/skn34-4th-3team
- Repository: https://github.com/sknetworks-family-aicamp/skn34-4th-3team

## Overview

창업ON is an AI administrative and finance support platform for young and solo founders. Users enter through the web/mobile interface to explore policies and tax guidance, get AI answers, assess expenses from receipts, and create business-plan drafts; account, calendar, and reminder features support that work. The README describes Backend-to-LLM calls and grounded RAG, OCR, and rule-based tax assessment. Source-index references support the sampled API/service and LLM retrieval links; some feature internals are unsampled, so their connections are documented at subsystem level.

Main entry points: [`Backend/services`](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/Backend/services) (Domain services), [`Frontend/src/api.js`](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Frontend/src/api.js) (API client), [`LLM/src/serving/rag_routes.py`](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/serving/rag_routes.py) (LLM serving routes), [`LLM/src/vectorstores/postgres.py`](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/vectorstores/postgres.py) (Vector store)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User experience"]
  node_frontend["Web and mobile app<br/>[App.jsx]"]
  node_client_api["API client<br/>[api.js]"]
end

subgraph group_backend["Platform backend"]
  node_account["Accounts and profiles<br/>[auth.py]"]
  node_tax_policy["Tax and policy APIs"]
  node_expenses["Expense APIs<br/>[expenses.py]"]
  node_plans["Business-plan APIs<br/>[bizplan.py]"]
  node_chat_calendar["Chat and calendar APIs<br/>[chat.py]"]
  node_backend_services["Domain services"]
  node_entity_repo["Application repository<br/>[repo.py]"]
  node_app_db[("Application database<br/>[db.py]")]
  node_llm_client["LLM HTTP client<br/>[llm_client.py]"]
end

subgraph group_ai["AI and retrieval"]
  node_llm_routes["LLM serving routes<br/>[rag_routes.py]"]
  node_rag_discovery["RAG discovery<br/>[discovery.py]"]
  node_rag_tasks["Structured AI tasks<br/>[backend_tasks.py]"]
  node_receipt_ocr["Receipt OCR<br/>[receipt_ocr.py]"]
  node_hybrid_search["Hybrid retrieval<br/>[hybrid.py]"]
  node_vector_store[("Vector store<br/>[postgres.py]")]
end

subgraph group_data["Knowledge data"]
  node_llm_repository[("Knowledge repository")]
  node_indexing["Document indexing<br/>[indexing.py]"]
  node_collectors["Policy and tax collectors"]
end

node_founder(("Founder"))

node_founder -->|"uses"| node_frontend
node_frontend -->|"requests"| node_client_api
node_client_api -.->|"calls"| node_account
node_client_api -.->|"calls"| node_tax_policy
node_client_api -.->|"calls"| node_expenses
node_client_api -.->|"calls"| node_plans
node_client_api -.->|"calls"| node_chat_calendar
node_account -->|"delegates"| node_backend_services
node_tax_policy -.->|"delegates"| node_backend_services
node_expenses -.->|"delegates"| node_backend_services
node_plans -->|"delegates"| node_backend_services
node_chat_calendar -->|"delegates"| node_backend_services
node_backend_services -->|"queries"| node_entity_repo
node_entity_repo -->|"reads and writes"| node_app_db
node_backend_services -->|"requests AI"| node_llm_client
node_llm_client -->|"HTTP calls"| node_llm_routes
node_llm_routes -->|"routes to"| node_rag_discovery
node_llm_routes -->|"uses"| node_rag_tasks
node_llm_routes -->|"uses"| node_receipt_ocr
node_rag_discovery -->|"retrieves"| node_hybrid_search
node_hybrid_search -->|"searches"| node_vector_store
node_vector_store -->|"loads evidence"| node_llm_repository
node_indexing -->|"reads source records"| node_llm_repository
node_indexing -->|"indexes chunks"| node_vector_store
node_collectors -.->|"populates data"| node_llm_repository

click node_frontend "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Frontend/src/App.jsx"
click node_client_api "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Frontend/src/api.js"
click node_account "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/auth.py"
click node_tax_policy "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/Backend/api"
click node_expenses "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/expenses.py"
click node_plans "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/bizplan.py"
click node_chat_calendar "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/chat.py"
click node_backend_services "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/Backend/services"
click node_entity_repo "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/core/repo.py"
click node_app_db "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/core/db.py"
click node_llm_client "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/core/llm_client.py"
click node_llm_routes "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/serving/rag_routes.py"
click node_rag_discovery "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/rag/discovery.py"
click node_rag_tasks "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/rag/backend_tasks.py"
click node_receipt_ocr "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/features/receipt_ocr.py"
click node_hybrid_search "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/vectorstores/hybrid.py"
click node_vector_store "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/vectorstores/postgres.py"
click node_llm_repository "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/data/postgres_repository.py"
click node_indexing "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/features/indexing.py"
click node_collectors "https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/DB/scripts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_frontend,node_client_api toneBlue
class node_account,node_tax_policy,node_expenses,node_plans,node_chat_calendar,node_backend_services,node_entity_repo,node_app_db,node_llm_client toneAmber
class node_llm_routes,node_rag_discovery,node_rag_tasks,node_receipt_ocr,node_hybrid_search,node_vector_store toneMint
class node_llm_repository,node_indexing,node_collectors toneRose
class node_founder toneIndigo
```

## Components

### User experience

- [Web and mobile app](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Frontend/src/App.jsx): `Frontend/src/App.jsx`
- [API client](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Frontend/src/api.js): `Frontend/src/api.js`

### Platform backend

- [Accounts and profiles](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/auth.py): `Backend/api/auth.py`
- [Tax and policy APIs](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/Backend/api): `Backend/api`
- [Expense APIs](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/expenses.py): `Backend/api/expenses.py`
- [Business-plan APIs](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/bizplan.py): `Backend/api/bizplan.py`
- [Chat and calendar APIs](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/api/chat.py): `Backend/api/chat.py`
- [Domain services](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/Backend/services): `Backend/services`
- [Application repository](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/core/repo.py): `Backend/core/repo.py`
- [Application database](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/core/db.py): `Backend/core/db.py`
- [LLM HTTP client](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/Backend/core/llm_client.py): `Backend/core/llm_client.py`

### AI and retrieval

- [LLM serving routes](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/serving/rag_routes.py): `LLM/src/serving/rag_routes.py`
- [RAG discovery](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/rag/discovery.py): `LLM/src/rag/discovery.py`
- [Structured AI tasks](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/rag/backend_tasks.py): `LLM/src/rag/backend_tasks.py`
- [Receipt OCR](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/features/receipt_ocr.py): `LLM/src/features/receipt_ocr.py`
- [Hybrid retrieval](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/vectorstores/hybrid.py): `LLM/src/vectorstores/hybrid.py`
- [Vector store](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/vectorstores/postgres.py): `LLM/src/vectorstores/postgres.py`

### Knowledge data

- [Knowledge repository](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/data/postgres_repository.py): `LLM/src/data/postgres_repository.py`
- [Document indexing](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/blob/main/LLM/src/features/indexing.py): `LLM/src/features/indexing.py`
- [Policy and tax collectors](https://github.com/sknetworks-family-aicamp/skn34-4th-3team/tree/main/DB/scripts): `DB/scripts`

### Other components

- **Founder**

## Connections

- Founder → Web and mobile app: uses (evidence: `README.md`)
- Web and mobile app → API client: requests (evidence: `Frontend/src/App.jsx`)
- API client → Accounts and profiles: calls
- API client → Tax and policy APIs: calls
- API client → Expense APIs: calls
- API client → Business-plan APIs: calls
- API client → Chat and calendar APIs: calls
- Accounts and profiles → Domain services: delegates (evidence: `Backend/api/auth.py`)
- Tax and policy APIs → Domain services: delegates (evidence: `Backend/api/auth.py`)
- Expense APIs → Domain services: delegates
- Business-plan APIs → Domain services: delegates (evidence: `Backend/api/bizplan.py`)
- Chat and calendar APIs → Domain services: delegates (evidence: `Backend/api/chat.py`)
- Domain services → Application repository: queries (evidence: `Backend/services/auth_service.py`)
- Application repository → Application database: reads and writes (evidence: `Backend/core/repo.py`)
- Domain services → LLM HTTP client: requests AI (evidence: `Backend/services/bizplan_service.py`)
- LLM HTTP client → LLM serving routes: HTTP calls (evidence: `Backend/core/llm_client.py`)
- LLM serving routes → RAG discovery: routes to (evidence: `LLM/src/serving/rag_routes.py`)
- LLM serving routes → Structured AI tasks: uses (evidence: `LLM/src/serving/rag_routes.py`)
- LLM serving routes → Receipt OCR: uses (evidence: `LLM/src/serving/rag_routes.py`)
- RAG discovery → Hybrid retrieval: retrieves (evidence: `LLM/src/rag/discovery.py`)
- Hybrid retrieval → Vector store: searches (evidence: `LLM/src/vectorstores/hybrid.py`)
- Vector store → Knowledge repository: loads evidence (evidence: `LLM/src/vectorstores/postgres.py`)
- Document indexing → Knowledge repository: reads source records (evidence: `LLM/src/features/indexing.py`)
- Document indexing → Vector store: indexes chunks (evidence: `LLM/src/features/indexing.py`)
- Policy and tax collectors → Knowledge repository: populates data
