# pratik152it/c_chatbot architecture

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

- Interactive diagram: https://gitdiagram.com/pratik152it/c_chatbot
- Repository: https://github.com/pratik152it/c_chatbot

## Overview

The tree suggests a code-focused RAG/chat application, with separate indexing, chunking, chat, and evaluation scripts. No README or source excerpts were provided, so relationships between these components and external services cannot be verified; edges are omitted rather than inferred. The bundled CJSON tree and sample files are not mapped as product components.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_chat["Chat app<br/>[chat_app.py]"]
  node_app["App<br/>[app.py]"]
end

subgraph group_rag["RAG workflow"]
  node_chunker["Chunking<br/>[chunker.py]"]
  node_index["Chunk indexing<br/>[index_chunks.py]"]
  node_pipeline["RAG pipeline<br/>[ragpipline.py]"]
  node_chroma[("Chroma store<br/>[chroma.sqlite3]")]
  node_ast["AST exploration<br/>[explore_ast.py]"]
end

subgraph group_evaluation["Evaluation"]
  node_evalmodels["Model evaluation<br/>[eval_models.py]"]
  node_modeleval["Evaluation results<br/>[model_eval.py]"]
  node_evalresults["Evaluation data<br/>[eval_c_results.csv]"]
  node_embeddingtest["Embedding checks<br/>[test_embed.py]"]
  node_retrievaltest["Retrieval checks<br/>[test_retrieval.py]"]
  node_explaincheck["Explanation checks<br/>[test_explain.py]"]
  node_ollamatest["Ollama checks<br/>[test_ollama.py]"]
end

node_user(("User"))

click node_chat "https://github.com/pratik152it/c_chatbot/blob/main/test/chat_app.py"
click node_app "https://github.com/pratik152it/c_chatbot/blob/main/test/app.py"
click node_chunker "https://github.com/pratik152it/c_chatbot/blob/main/test/chunker.py"
click node_index "https://github.com/pratik152it/c_chatbot/blob/main/test/index_chunks.py"
click node_pipeline "https://github.com/pratik152it/c_chatbot/blob/main/test/ragpipline.py"
click node_chroma "https://github.com/pratik152it/c_chatbot/blob/main/test/chroma_db/chroma.sqlite3"
click node_evalmodels "https://github.com/pratik152it/c_chatbot/blob/main/test/eval_models.py"
click node_modeleval "https://github.com/pratik152it/c_chatbot/blob/main/test/model_eval.py"
click node_evalresults "https://github.com/pratik152it/c_chatbot/blob/main/test/eval_c_results.csv"
click node_ast "https://github.com/pratik152it/c_chatbot/blob/main/test/explore_ast.py"
click node_embeddingtest "https://github.com/pratik152it/c_chatbot/blob/main/test/test_embed.py"
click node_retrievaltest "https://github.com/pratik152it/c_chatbot/blob/main/test/test_retrieval.py"
click node_explaincheck "https://github.com/pratik152it/c_chatbot/blob/main/test/test_explain.py"
click node_ollamatest "https://github.com/pratik152it/c_chatbot/blob/main/test/test_ollama.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_chat,node_app,node_user toneBlue
class node_chunker,node_index,node_pipeline,node_chroma,node_ast toneAmber
class node_evalmodels,node_modeleval,node_evalresults,node_embeddingtest,node_retrievaltest,node_explaincheck,node_ollamatest toneMint
```

## Components

### User interaction

- [Chat app](https://github.com/pratik152it/c_chatbot/blob/main/test/chat_app.py): `test/chat_app.py`
- [App](https://github.com/pratik152it/c_chatbot/blob/main/test/app.py): `test/app.py`

### RAG workflow

- [Chunking](https://github.com/pratik152it/c_chatbot/blob/main/test/chunker.py): `test/chunker.py`
- [Chunk indexing](https://github.com/pratik152it/c_chatbot/blob/main/test/index_chunks.py): `test/index_chunks.py`
- [RAG pipeline](https://github.com/pratik152it/c_chatbot/blob/main/test/ragpipline.py): `test/ragpipline.py`
- [Chroma store](https://github.com/pratik152it/c_chatbot/blob/main/test/chroma_db/chroma.sqlite3): `test/chroma_db/chroma.sqlite3`
- [AST exploration](https://github.com/pratik152it/c_chatbot/blob/main/test/explore_ast.py): `test/explore_ast.py`

### Evaluation

- [Model evaluation](https://github.com/pratik152it/c_chatbot/blob/main/test/eval_models.py): `test/eval_models.py`
- [Evaluation results](https://github.com/pratik152it/c_chatbot/blob/main/test/model_eval.py): `test/model_eval.py`
- [Evaluation data](https://github.com/pratik152it/c_chatbot/blob/main/test/eval_c_results.csv): `test/eval_c_results.csv`
- [Embedding checks](https://github.com/pratik152it/c_chatbot/blob/main/test/test_embed.py): `test/test_embed.py`
- [Retrieval checks](https://github.com/pratik152it/c_chatbot/blob/main/test/test_retrieval.py): `test/test_retrieval.py`
- [Explanation checks](https://github.com/pratik152it/c_chatbot/blob/main/test/test_explain.py): `test/test_explain.py`
- [Ollama checks](https://github.com/pratik152it/c_chatbot/blob/main/test/test_ollama.py): `test/test_ollama.py`

### Other components

- **User**
