# simonc44/rontogpt architecture

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

- Interactive diagram: https://gitdiagram.com/simonc44/rontogpt
- Repository: https://github.com/simonc44/rontogpt

## Overview

RontoGPT is a local, CPU-native hybrid assistant: a request enters through the CLI, the orchestrator tries fast or deterministic answers and sourced knowledge before using the local language model, then returns a response. Distinct stages include routing, exact solving, retrieval, web/API lookup, conversation memory, and language generation; model packaging and adapter serving are supporting runtime layers. Edges follow the README’s architecture and the shown imports/calls. Some subsystems are represented from README or source-index evidence; their internal wiring was not sampled.

Main entry points: [`aura/orchestrateur.py`](https://github.com/simonc44/rontogpt/blob/main/aura/orchestrateur.py) (Answer orchestrator), [`aura/__main__.py`](https://github.com/simonc44/rontogpt/blob/main/aura/__main__.py) (CLI and chat), [`aura/rag_binaire.py`](https://github.com/simonc44/rontogpt/blob/main/aura/rag_binaire.py) (Binary knowledge index), [`aura/graphe_faits.py`](https://github.com/simonc44/rontogpt/blob/main/aura/graphe_faits.py) (Fact graph)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Entry and orchestration"]
  node_cli["CLI and chat<br/>[__main__.py]"]
  node_orchestrator["Answer orchestrator<br/>[orchestrateur.py]"]
end

subgraph group_reason["Routing and solving"]
  node_cache[("Instant answers")]
  node_router["Question router<br/>[routeur.py]"]
  node_pal["Math and dates<br/>[pal.py]"]
  node_symbolic["Symbolic expert"]
  node_reasoner["Step reasoning<br/>[raisonneur.py]"]
  node_logic["Logic solver<br/>[logique.py]"]
  node_potcode["Code verification<br/>[potcode.py]"]
end

subgraph group_knowledge["Knowledge and memory"]
  node_rag[("Binary knowledge index<br/>[rag_binaire.py]")]
  node_ragdata["Embedded RAG data<br/>[_rag_data.py]"]
  node_factgraph[("Fact graph<br/>[graphe_faits.py]")]
  node_webmemory["Web retrieval<br/>[memoire_web.py]"]
  node_publicapis["Public API connectors<br/>[apis_publiques.py]"]
  node_conversation[("Conversation memory")]
end

subgraph group_generation["Language generation"]
  node_agents["Cognitive agents<br/>[agents.py]"]
  node_llm["Local model interface<br/>[llama_cerveau.py]"]
end

subgraph group_runtime["Model runtime"]
  node_adapter["LoRA adapters<br/>[adaptateurs.py]"]
  node_loraserver["LoRA server<br/>[serveur_lora.py]"]
  node_kernel["Sealed package boot<br/>[kernel.py]"]
end

node_user(("User"))
node_web(("DuckDuckGo"))
node_llama["llama.cpp model"]
node_aef["AEF package"]

node_user -->|"asks"| node_cli
node_cli -->|"submits question"| node_orchestrator
node_orchestrator -->|"checks first"| node_cache
node_orchestrator -->|"classifies"| node_router
node_orchestrator -->|"solves numeric tasks"| node_pal
node_orchestrator -->|"requests formulas"| node_symbolic
node_orchestrator -->|"checks reasoning"| node_reasoner
node_orchestrator -->|"solves constraints"| node_logic
node_orchestrator -->|"verifies code"| node_potcode
node_orchestrator -->|"structures response"| node_agents
node_orchestrator -->|"searches knowledge"| node_rag
node_rag -->|"loads index"| node_ragdata
node_orchestrator -->|"looks up facts"| node_factgraph
node_factgraph -->|"returns evidence"| node_orchestrator
node_orchestrator -->|"requests current facts"| node_webmemory
node_webmemory -.->|"searches"| node_web
node_orchestrator -.->|"may request data"| node_publicapis
node_orchestrator -->|"stores and retrieves turns"| node_conversation
node_orchestrator -->|"requests generation"| node_llm
node_llm -->|"generates with"| node_llama
node_orchestrator -.->|"may select adapter"| node_adapter
node_orchestrator -.->|"may set adapter weights"| node_loraserver
node_loraserver -.->|"serves model"| node_llama
node_adapter -.->|"mounts adapter"| node_llama
node_aef -.->|"boots from"| node_kernel
node_kernel -.->|"starts assistant"| node_orchestrator

click node_cli "https://github.com/simonc44/rontogpt/blob/main/aura/__main__.py"
click node_orchestrator "https://github.com/simonc44/rontogpt/blob/main/aura/orchestrateur.py"
click node_cache "https://github.com/simonc44/rontogpt/blob/main/aura/filtre_instantane.py"
click node_router "https://github.com/simonc44/rontogpt/blob/main/aura/routeur.py"
click node_pal "https://github.com/simonc44/rontogpt/blob/main/aura/pal.py"
click node_symbolic "https://github.com/simonc44/rontogpt/blob/main/aura/expert_symbolique.py"
click node_reasoner "https://github.com/simonc44/rontogpt/blob/main/aura/raisonneur.py"
click node_logic "https://github.com/simonc44/rontogpt/blob/main/aura/logique.py"
click node_potcode "https://github.com/simonc44/rontogpt/blob/main/aura/potcode.py"
click node_agents "https://github.com/simonc44/rontogpt/blob/main/aura/agents.py"
click node_rag "https://github.com/simonc44/rontogpt/blob/main/aura/rag_binaire.py"
click node_ragdata "https://github.com/simonc44/rontogpt/blob/main/aura/_rag_data.py"
click node_factgraph "https://github.com/simonc44/rontogpt/blob/main/aura/graphe_faits.py"
click node_webmemory "https://github.com/simonc44/rontogpt/blob/main/aura/memoire_web.py"
click node_publicapis "https://github.com/simonc44/rontogpt/blob/main/aura/apis_publiques.py"
click node_conversation "https://github.com/simonc44/rontogpt/blob/main/aura/memoire_conversation.py"
click node_llm "https://github.com/simonc44/rontogpt/blob/main/aura/llama_cerveau.py"
click node_adapter "https://github.com/simonc44/rontogpt/blob/main/aura/adaptateurs.py"
click node_loraserver "https://github.com/simonc44/rontogpt/blob/main/aura/serveur_lora.py"
click node_kernel "https://github.com/simonc44/rontogpt/blob/main/aura/kernel.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_cli,node_orchestrator,node_user toneBlue
class node_cache,node_router,node_pal,node_symbolic,node_reasoner,node_logic,node_potcode toneAmber
class node_rag,node_ragdata,node_factgraph,node_webmemory,node_publicapis,node_conversation toneMint
class node_agents,node_llm toneRose
class node_adapter,node_loraserver,node_kernel,node_web,node_llama,node_aef toneIndigo
```

## Components

### Entry and orchestration

- [CLI and chat](https://github.com/simonc44/rontogpt/blob/main/aura/__main__.py): `aura/__main__.py`
- [Answer orchestrator](https://github.com/simonc44/rontogpt/blob/main/aura/orchestrateur.py): `aura/orchestrateur.py`

### Routing and solving

- [Instant answers](https://github.com/simonc44/rontogpt/blob/main/aura/filtre_instantane.py): `aura/filtre_instantane.py`
- [Question router](https://github.com/simonc44/rontogpt/blob/main/aura/routeur.py): `aura/routeur.py`
- [Math and dates](https://github.com/simonc44/rontogpt/blob/main/aura/pal.py): `aura/pal.py`
- [Symbolic expert](https://github.com/simonc44/rontogpt/blob/main/aura/expert_symbolique.py): `aura/expert_symbolique.py`
- [Step reasoning](https://github.com/simonc44/rontogpt/blob/main/aura/raisonneur.py): `aura/raisonneur.py`
- [Logic solver](https://github.com/simonc44/rontogpt/blob/main/aura/logique.py): `aura/logique.py`
- [Code verification](https://github.com/simonc44/rontogpt/blob/main/aura/potcode.py): `aura/potcode.py`

### Knowledge and memory

- [Binary knowledge index](https://github.com/simonc44/rontogpt/blob/main/aura/rag_binaire.py): `aura/rag_binaire.py`
- [Embedded RAG data](https://github.com/simonc44/rontogpt/blob/main/aura/_rag_data.py): `aura/_rag_data.py`
- [Fact graph](https://github.com/simonc44/rontogpt/blob/main/aura/graphe_faits.py): `aura/graphe_faits.py`
- [Web retrieval](https://github.com/simonc44/rontogpt/blob/main/aura/memoire_web.py): `aura/memoire_web.py`
- [Public API connectors](https://github.com/simonc44/rontogpt/blob/main/aura/apis_publiques.py): `aura/apis_publiques.py`
- [Conversation memory](https://github.com/simonc44/rontogpt/blob/main/aura/memoire_conversation.py): `aura/memoire_conversation.py`

### Language generation

- [Cognitive agents](https://github.com/simonc44/rontogpt/blob/main/aura/agents.py): `aura/agents.py`
- [Local model interface](https://github.com/simonc44/rontogpt/blob/main/aura/llama_cerveau.py): `aura/llama_cerveau.py`

### Model runtime

- [LoRA adapters](https://github.com/simonc44/rontogpt/blob/main/aura/adaptateurs.py): `aura/adaptateurs.py`
- [LoRA server](https://github.com/simonc44/rontogpt/blob/main/aura/serveur_lora.py): `aura/serveur_lora.py`
- [Sealed package boot](https://github.com/simonc44/rontogpt/blob/main/aura/kernel.py): `aura/kernel.py`

### Other components

- **User**
- **DuckDuckGo**
- **llama.cpp model**
- **AEF package**

## Connections

- User → CLI and chat: asks
- CLI and chat → Answer orchestrator: submits question
- Answer orchestrator → Instant answers: checks first (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Question router: classifies (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Math and dates: solves numeric tasks
- Answer orchestrator → Symbolic expert: requests formulas (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Step reasoning: checks reasoning (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Logic solver: solves constraints (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Code verification: verifies code (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Cognitive agents: structures response (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Binary knowledge index: searches knowledge (evidence: `aura/orchestrateur.py`)
- Binary knowledge index → Embedded RAG data: loads index (evidence: `aura/rag_binaire.py`)
- Answer orchestrator → Fact graph: looks up facts (evidence: `aura/orchestrateur.py`)
- Fact graph → Answer orchestrator: returns evidence (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Web retrieval: requests current facts (evidence: `aura/orchestrateur.py`)
- Web retrieval → DuckDuckGo: searches
- Answer orchestrator → Public API connectors: may request data (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Conversation memory: stores and retrieves turns (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → Local model interface: requests generation (evidence: `aura/orchestrateur.py`)
- Local model interface → llama.cpp model: generates with
- Answer orchestrator → LoRA adapters: may select adapter (evidence: `aura/orchestrateur.py`)
- Answer orchestrator → LoRA server: may set adapter weights (evidence: `aura/orchestrateur.py`)
- LoRA server → llama.cpp model: serves model
- LoRA adapters → llama.cpp model: mounts adapter
- AEF package → Sealed package boot: boots from
- Sealed package boot → Answer orchestrator: starts assistant
