# mongulu-cm/tchoung-te architecture

> Architecture diagram of the GitHub repository mongulu-cm/tchoung-te, 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/mongulu-cm/tchoung-te
- Repository: https://github.com/mongulu-cm/tchoung-te

## Overview

A Tchoung té federates information about Cameroonian associations in France. Its core workflow takes national association-register data through filtering, enrichment and export, then uses that dataset in Gogocarto and a conversational assistant. The assistant answers questions through SQL and vector retrieval; the repository also includes run-based RAG evaluation. Edges are limited to relationships shown in the excerpts or documented in the README; some deployment and evaluation details are documented capabilities rather than inspected implementations.

Main entry points: [`etl/experiments/ui.py`](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py) (Chat Interface), [`etl/ref-rna-real-mars-2022-enriched-qualified.csv`](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/ref-rna-real-mars-2022-enriched-qualified.csv) (Qualified CSV), [`etl/enrich-database.py`](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/enrich-database.py) (Web Enrichment), [`etl/experiments/evals/rag.py`](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/evals/rag.py) (RAG Evaluation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Association Data"]
  node_filter["Filter Associations<br/>[filter-cameroon.py]"]
  node_address["Address Enrichment<br/>[filter-cameroon.py]"]
  node_web_enrichment["Web Enrichment<br/>[enrich-database.py]"]
  node_qualified_csv["Qualified CSV"]
  node_database_update["Register Update<br/>[update_database.py]"]
end

subgraph group_assistant["Chat Assistant"]
  node_chat_ui["Chat Interface<br/>[ui.py]"]
  node_sql_agent["SQL Agent<br/>[ui.py]"]
  node_association_db[("SQLite Association DB<br/>[ui.py]")]
  node_retriever["Vector Retriever<br/>[ui.py]"]
  node_faiss_index[("FAISS Index<br/>[ui.py]")]
  node_answer["Chat Answer<br/>[ui.py]"]
end

subgraph group_evaluation["RAG Evaluation"]
  node_langsmith[("LangSmith Runs")]
  node_rag_eval["RAG Evaluation<br/>[rag.py]"]
  node_eval_scores["Evaluation Scores<br/>[rag.py]"]
end

subgraph group_public["Public Access"]
  node_gogocarto["Gogocarto Map"]
  node_dashboard["Public Dashboard"]
end

node_rna["RNA Register"]
node_bing{{"Bing Search"}}
node_chat_user(("Chat User"))
node_chat_model{{"Chat Model"}}

node_rna -->|"provides data"| node_filter
node_filter -->|"filters and normalizes"| node_address
node_address -.->|"exports dataset"| node_qualified_csv
node_qualified_csv -->|"enriches records"| node_web_enrichment
node_web_enrichment -->|"searches URLs"| node_bing
node_web_enrichment -->|"writes enriched data"| node_qualified_csv
node_rna -->|"downloads register"| node_database_update
node_chat_user -->|"asks question"| node_chat_ui
node_chat_ui -->|"creates SQL tool"| node_sql_agent
node_chat_ui -->|"loads CSV table"| node_association_db
node_chat_ui -->|"creates retriever"| node_retriever
node_chat_ui -->|"loads or builds"| node_faiss_index
node_qualified_csv -->|"supplies records"| node_chat_ui
node_chat_ui -->|"binds tools"| node_chat_model
node_chat_ui -->|"returns response"| node_answer
node_qualified_csv -->|"configured as source"| node_gogocarto
node_gogocarto -.->|"visualizes associations"| node_dashboard
node_langsmith -->|"provides traced runs"| node_rag_eval
node_rag_eval -->|"reads runs"| node_langsmith
node_rag_eval -->|"computes metrics"| node_eval_scores

click node_filter "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/filter-cameroon.py"
click node_address "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/filter-cameroon.py"
click node_web_enrichment "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/enrich-database.py"
click node_qualified_csv "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/ref-rna-real-mars-2022-enriched-qualified.csv"
click node_database_update "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/update_database.py"
click node_chat_ui "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py"
click node_sql_agent "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py"
click node_association_db "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py"
click node_retriever "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py"
click node_faiss_index "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py"
click node_answer "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py"
click node_rag_eval "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/evals/rag.py"
click node_eval_scores "https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/evals/rag.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_filter,node_address,node_web_enrichment,node_qualified_csv,node_database_update,node_chat_user toneBlue
class node_chat_ui,node_sql_agent,node_association_db,node_retriever,node_faiss_index,node_answer toneAmber
class node_langsmith,node_rag_eval,node_eval_scores toneMint
class node_gogocarto,node_dashboard toneRose
class node_rna,node_bing,node_chat_model toneIndigo
```

## Components

### Association Data

- [Filter Associations](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/filter-cameroon.py): `etl/filter-cameroon.py`
- [Address Enrichment](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/filter-cameroon.py): `etl/filter-cameroon.py`
- [Web Enrichment](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/enrich-database.py): `etl/enrich-database.py`
- [Qualified CSV](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/ref-rna-real-mars-2022-enriched-qualified.csv): `etl/ref-rna-real-mars-2022-enriched-qualified.csv`
- [Register Update](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/update_database.py): `etl/update_database.py`

### Chat Assistant

- [Chat Interface](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py): `etl/experiments/ui.py`
- [SQL Agent](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py): `etl/experiments/ui.py`
- [SQLite Association DB](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py): `etl/experiments/ui.py`
- [Vector Retriever](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py): `etl/experiments/ui.py`
- [FAISS Index](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py): `etl/experiments/ui.py`
- [Chat Answer](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/ui.py): `etl/experiments/ui.py`

### RAG Evaluation

- **LangSmith Runs**
- [RAG Evaluation](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/evals/rag.py): `etl/experiments/evals/rag.py`
- [Evaluation Scores](https://github.com/mongulu-cm/tchoung-te/blob/main/etl/experiments/evals/rag.py): `etl/experiments/evals/rag.py`

### Public Access

- **Gogocarto Map**
- **Public Dashboard**

### Other components

- **RNA Register**
- **Bing Search**
- **Chat User**
- **Chat Model**

## Connections

- RNA Register → Filter Associations: provides data (evidence: `etl/filter-cameroon.py`)
- Filter Associations → Address Enrichment: filters and normalizes (evidence: `etl/filter-cameroon.py`)
- Address Enrichment → Qualified CSV: exports dataset
- Qualified CSV → Web Enrichment: enriches records (evidence: `etl/enrich-database.py`)
- Web Enrichment → Bing Search: searches URLs (evidence: `etl/enrich-database.py`)
- Web Enrichment → Qualified CSV: writes enriched data (evidence: `etl/enrich-database.py`)
- RNA Register → Register Update: downloads register (evidence: `etl/update_database.py`)
- Chat User → Chat Interface: asks question (evidence: `etl/experiments/ui.py`)
- Chat Interface → SQL Agent: creates SQL tool (evidence: `etl/experiments/ui.py`)
- Chat Interface → SQLite Association DB: loads CSV table (evidence: `etl/experiments/ui.py`)
- Chat Interface → Vector Retriever: creates retriever (evidence: `etl/experiments/ui.py`)
- Chat Interface → FAISS Index: loads or builds (evidence: `etl/experiments/ui.py`)
- Qualified CSV → Chat Interface: supplies records (evidence: `etl/experiments/ui.py`)
- Chat Interface → Chat Model: binds tools (evidence: `etl/experiments/ui.py`)
- Chat Interface → Chat Answer: returns response (evidence: `etl/experiments/ui.py`)
- Qualified CSV → Gogocarto Map: configured as source (evidence: `README.md`)
- Gogocarto Map → Public Dashboard: visualizes associations (evidence: `README.md`)
- LangSmith Runs → RAG Evaluation: provides traced runs (evidence: `etl/experiments/evals/rag.py`)
- RAG Evaluation → LangSmith Runs: reads runs (evidence: `etl/experiments/evals/rag.py`)
- RAG Evaluation → Evaluation Scores: computes metrics (evidence: `etl/experiments/evals/rag.py`)
