# hyunwoongko/dialobot architecture

> Architecture diagram of the GitHub repository hyunwoongko/dialobot, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hyunwoongko/dialobot
- Repository: https://github.com/hyunwoongko/dialobot

## Overview

Dialobot is a multilingual neural chatbot framework with a Streamlit builder and reusable intent and entity recognition components. The documented builder workflow starts the application, launches its server, and presents feature pages; the intent runtime composes classifier and retrieval strategies, while entity recognition is a separate capability. The README also advertises question answering, paraphrase generation, and response generation, represented by their builder pages and the paraphrase module where present. Several page implementations and backend behavior were not sampled, so their internal connections are omitted.

Main entry points: [`dialobot/app/frontend/frontend.py`](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/frontend.py) (Builder frontend), [`dialobot/app/server.py`](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/server.py) (App server), [`dialobot/core/intent/pipeline.py`](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/pipeline.py) (Intent pipeline), [`dialobot/core/intent/classifier.py`](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/classifier.py) (Zero-shot classifier)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Builder application"]
  node_application["Application launcher<br/>[application.py]"]
  node_server["App server<br/>[server.py]"]
  node_backend["Backend service<br/>[backend.py]"]
  node_frontend["Builder frontend<br/>[frontend.py]"]
  node_loading["Loading page<br/>[loading.py]"]
  node_css["UI styling<br/>[css.py]"]
  node_intent_ui["Intent builder<br/>[intent.py]"]
  node_entity_ui["Entity builder<br/>[entity.py]"]
end

subgraph group_intent["Intent recognition"]
  node_intent["Intent pipeline<br/>[pipeline.py]"]
  node_classifier["Zero-shot classifier<br/>[classifier.py]"]
  node_retriever["Example retriever<br/>[retriever.py]"]
end

subgraph group_nlp["Language processing"]
  node_entity["Entity recognizer<br/>[recognizer.py]"]
  node_tokenizer["BrainBert tokenizer<br/>[tokenizer.py]"]
  node_constants["Model constants<br/>[const.py]"]
end

subgraph group_features["Chatbot features"]
  node_qa_ui["Question answering<br/>[qa.py]"]
  node_para_ui["Paraphrase builder<br/>[para.py]"]
  node_response_ui["Response builder<br/>[response.py]"]
  node_paraphrase["Paraphrase module<br/>[main.py]"]
end

node_user(("Builder user"))

node_user -->|"starts"| node_application
node_application -->|"launches"| node_server
node_server -->|"shows"| node_loading
node_server -->|"starts"| node_backend
node_server -->|"starts"| node_frontend
node_frontend -->|"applies"| node_css
node_frontend -->|"routes to"| node_intent_ui
node_frontend -->|"routes to"| node_entity_ui
node_frontend -->|"routes to"| node_qa_ui
node_frontend -->|"routes to"| node_para_ui
node_frontend -->|"routes to"| node_response_ui
node_intent -->|"delegates"| node_classifier
node_intent -->|"delegates"| node_retriever
node_classifier -->|"imports aliases"| node_constants
node_classifier -->|"uses"| node_tokenizer
node_intent -->|"imports aliases"| node_constants
node_retriever -->|"imports dimensions"| node_constants
node_entity -->|"uses"| node_tokenizer

click node_application "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/application.py"
click node_server "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/server.py"
click node_backend "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/backend/backend.py"
click node_frontend "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/frontend.py"
click node_loading "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/loading.py"
click node_css "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/utils/css.py"
click node_intent_ui "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/intent.py"
click node_entity_ui "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/entity.py"
click node_qa_ui "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/qa.py"
click node_para_ui "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/para.py"
click node_response_ui "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/response.py"
click node_intent "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/pipeline.py"
click node_classifier "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/classifier.py"
click node_retriever "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/retriever.py"
click node_entity "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/entity/recognizer.py"
click node_tokenizer "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/utils/tokenizer.py"
click node_constants "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/utils/const.py"
click node_paraphrase "https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/paraphrase/main.py"

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_application,node_server,node_backend,node_frontend,node_loading,node_css,node_intent_ui,node_entity_ui,node_user toneBlue
class node_intent,node_classifier,node_retriever toneAmber
class node_entity,node_tokenizer,node_constants toneMint
class node_qa_ui,node_para_ui,node_response_ui,node_paraphrase toneRose
```

## Components

### Builder application

- [Application launcher](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/application.py): `dialobot/app/application.py`
- [App server](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/server.py): `dialobot/app/server.py`
- [Backend service](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/backend/backend.py): `dialobot/app/backend/backend.py`
- [Builder frontend](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/frontend.py): `dialobot/app/frontend/frontend.py`
- [Loading page](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/loading.py): `dialobot/app/frontend/pages/loading.py`
- [UI styling](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/utils/css.py): `dialobot/app/frontend/utils/css.py`
- [Intent builder](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/intent.py): `dialobot/app/frontend/pages/intent.py`
- [Entity builder](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/entity.py): `dialobot/app/frontend/pages/entity.py`

### Intent recognition

- [Intent pipeline](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/pipeline.py): `dialobot/core/intent/pipeline.py`
- [Zero-shot classifier](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/classifier.py): `dialobot/core/intent/classifier.py`
- [Example retriever](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/intent/retriever.py): `dialobot/core/intent/retriever.py`

### Language processing

- [Entity recognizer](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/entity/recognizer.py): `dialobot/core/entity/recognizer.py`
- [BrainBert tokenizer](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/utils/tokenizer.py): `dialobot/core/utils/tokenizer.py`
- [Model constants](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/utils/const.py): `dialobot/core/utils/const.py`

### Chatbot features

- [Question answering](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/qa.py): `dialobot/app/frontend/pages/qa.py`
- [Paraphrase builder](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/para.py): `dialobot/app/frontend/pages/para.py`
- [Response builder](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/app/frontend/pages/response.py): `dialobot/app/frontend/pages/response.py`
- [Paraphrase module](https://github.com/hyunwoongko/dialobot/blob/main/dialobot/core/paraphrase/main.py): `dialobot/core/paraphrase/main.py`

### Other components

- **Builder user**

## Connections

- Builder user → Application launcher: starts (evidence: `README.md`)
- Application launcher → App server: launches (evidence: `dialobot/app/application.py`)
- App server → Loading page: shows (evidence: `dialobot/app/server.py`)
- App server → Backend service: starts (evidence: `dialobot/app/server.py`)
- App server → Builder frontend: starts (evidence: `dialobot/app/server.py`)
- Builder frontend → UI styling: applies (evidence: `dialobot/app/frontend/frontend.py`)
- Builder frontend → Intent builder: routes to (evidence: `dialobot/app/frontend/frontend.py`)
- Builder frontend → Entity builder: routes to (evidence: `dialobot/app/frontend/frontend.py`)
- Builder frontend → Question answering: routes to (evidence: `dialobot/app/frontend/frontend.py`)
- Builder frontend → Paraphrase builder: routes to (evidence: `dialobot/app/frontend/frontend.py`)
- Builder frontend → Response builder: routes to (evidence: `dialobot/app/frontend/frontend.py`)
- Intent pipeline → Zero-shot classifier: delegates (evidence: `dialobot/core/intent/pipeline.py`)
- Intent pipeline → Example retriever: delegates (evidence: `dialobot/core/intent/pipeline.py`)
- Zero-shot classifier → Model constants: imports aliases (evidence: `dialobot/core/intent/classifier.py`)
- Zero-shot classifier → BrainBert tokenizer: uses (evidence: `dialobot/core/intent/classifier.py`)
- Intent pipeline → Model constants: imports aliases (evidence: `dialobot/core/intent/pipeline.py`)
- Example retriever → Model constants: imports dimensions (evidence: `dialobot/core/intent/retriever.py`)
- Entity recognizer → BrainBert tokenizer: uses (evidence: `dialobot/core/entity/recognizer.py`)
