# jagruthi-sarikonda/generative_chatbot_lstm_implementation architecture

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

- Interactive diagram: https://gitdiagram.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation
- Repository: https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation

## Overview

This repository documents a prototype generative chatbot built with a Seq2Seq encoder–decoder and LSTM. Its principal workflow is to prepare question-and-answer data, train the model with teacher forcing, then use an inference model to generate replies to user input and test the result. The README documents these stages but no source excerpts were provided, so implementation details and unshown connections are omitted; notebook-based components point to the notebook itself.

Main entry points: [`Generative_ChatBot_LSTM_.ipynb`](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb) (Inference model), [`chatbot_nlp.zip`](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/chatbot_nlp.zip) (YAML Q&A data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_dataset["YAML Q&amp;A data<br/>[chatbot_nlp.zip]"]
  node_preprocessing["Data preprocessing"]
end

subgraph group_model["Seq2Seq model"]
  node_encoder["LSTM encoder"]
  node_decoder["LSTM decoder"]
  node_training["Teacher-forced training"]
end

subgraph group_interaction["Chatbot use"]
  node_inference["Inference model"]
  node_testing["Model testing"]
end

node_user(("User"))

node_dataset -->|"prepares"| node_preprocessing
node_preprocessing -->|"supplies data"| node_training
node_encoder -->|"passes final state"| node_decoder
node_training -->|"trains with teacher forcing"| node_decoder
node_user -->|"provides input"| node_inference
node_inference -->|"generates reply"| node_user
node_inference -->|"is tested"| node_testing

click node_dataset "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/chatbot_nlp.zip"
click node_preprocessing "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb"
click node_encoder "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb"
click node_decoder "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb"
click node_training "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb"
click node_inference "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb"
click node_testing "https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb"

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_dataset,node_preprocessing,node_user toneBlue
class node_encoder,node_decoder,node_training toneAmber
class node_inference,node_testing toneMint
```

## Components

### Data preparation

- [YAML Q&A data](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/chatbot_nlp.zip): `chatbot_nlp.zip`
- [Data preprocessing](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb): `Generative_ChatBot_LSTM_.ipynb`

### Seq2Seq model

- [LSTM encoder](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb): `Generative_ChatBot_LSTM_.ipynb`
- [LSTM decoder](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb): `Generative_ChatBot_LSTM_.ipynb`
- [Teacher-forced training](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb): `Generative_ChatBot_LSTM_.ipynb`

### Chatbot use

- [Inference model](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb): `Generative_ChatBot_LSTM_.ipynb`
- [Model testing](https://github.com/jagruthi-sarikonda/generative_chatbot_lstm_implementation/blob/main/Generative_ChatBot_LSTM_.ipynb): `Generative_ChatBot_LSTM_.ipynb`

### Other components

- **User**

## Connections

- YAML Q&A data → Data preprocessing: prepares (evidence: `README.md`)
- Data preprocessing → Teacher-forced training: supplies data (evidence: `README.md`)
- LSTM encoder → LSTM decoder: passes final state (evidence: `README.md`)
- Teacher-forced training → LSTM decoder: trains with teacher forcing (evidence: `README.md`)
- User → Inference model: provides input (evidence: `README.md`)
- Inference model → User: generates reply (evidence: `README.md`)
- Inference model → Model testing: is tested (evidence: `README.md`)
