# aanyasingh2905-lab/college-faq-chatbot architecture

> Architecture diagram of the GitHub repository aanyasingh2905-lab/college-faq-chatbot, 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/aanyasingh2905-lab/college-faq-chatbot
- Repository: https://github.com/aanyasingh2905-lab/college-faq-chatbot

## Overview

A small Streamlit college FAQ chatbot. The user enters a question; the app matches a lowercase query against fixed FAQ keywords and displays the matching answer or a fallback. The README describes the chatbot, while the sampled app.py shows keyword matching rather than an external AI service.

Main entry points: [`app.py`](https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.py) (Chat interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("College visitor"))
node_chat_ui["Chat interface<br/>[app.py]"]
node_keyword_matcher["Keyword matcher<br/>[app.py]"]
node_faq_data["FAQ answers<br/>[app.py]"]

node_user -->|"enters question"| node_chat_ui
node_chat_ui -->|"calls"| node_keyword_matcher
node_keyword_matcher -->|"searches keywords"| node_faq_data
node_chat_ui -->|"displays answer"| node_user

click node_chat_ui "https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.py"
click node_keyword_matcher "https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.py"
click node_faq_data "https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.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_user toneIndigo
class node_chat_ui,node_keyword_matcher,node_faq_data toneTeal
```

## Components

### Other components

- **College visitor**
- [Chat interface](https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.py): `app.py`
- [Keyword matcher](https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.py): `app.py`
- [FAQ answers](https://github.com/aanyasingh2905-lab/college-faq-chatbot/blob/main/app.py): `app.py`

## Connections

- College visitor → Chat interface: enters question (evidence: `app.py`)
- Chat interface → Keyword matcher: calls (evidence: `app.py`)
- Keyword matcher → FAQ answers: searches keywords (evidence: `app.py`)
- Chat interface → College visitor: displays answer (evidence: `app.py`)
