How mckinziebrandon/deepchatmodels works
This repository provides configurable TensorFlow conversation models, dataset preparation, command-line training/chatting, and a Flask chatbot website. The main workflow is configure a dataset and model, prepare tokenized/TensorFlow-record inputs, train or load a model, then generate responses; the website serves frozen models through chat APIs. The graph combines explicit README workflow descriptions with the supplied source excerpts and index; some model-component and web wiring is documented but not shown in source excerpts, so those edges are marked unverified.
Main entry points: dynamic_models.py DynamicBot · views.py Chat and user APIs · _dataset.py Dataset handling · main.py CLI workflow
Components 25
Data preparation
- Dataset handling
data/_dataset.py - Data preprocessing
data/data_helper.py - Reddit preparation
data/reddit_preprocessor.py - Tokenization and vocabulary
utils/io_utils.py
Conversation models
- Input batching
chatbot/components/input_pipeline.py - Model lifecycle
chatbot/_models.py - DynamicBot
chatbot/dynamic_models.py - Bucketed models
chatbot/legacy/legacy_models.py - Legacy training
chatbot/legacy/_train.py - Legacy decoding
chatbot/legacy/_decode.py - Encoders and embeddings
chatbot/components/encoders.py - Decoders
chatbot/components/decoders.py - Recurrent cells
chatbot/components/base/_rnn.py - Model operations
chatbot/components/bot_ops.py
Model runtime
- CLI workflow
main.py - Config utilities
utils/io_utils.py - Frozen model utility
utils/bot_freezer.py
Web chatbot
- Flask application
webpage/deepchat/__init__.py - Chat and user APIs
webpage/deepchat/main/views.py - Frozen chatbot adapter
webpage/deepchat/web_bot.py - Conversation records
webpage/deepchat/models.py - User and chat forms
webpage/deepchat/main/forms.py - Chat interface
webpage/deepchat/static/js/chat_processing.js
Other components
- Developer
- Website visitor
Connections 24
- Developer → CLI workflow: configures and runs
README.md - CLI workflow → Config utilities: parses config
main.py - CLI workflow → Dataset handling: selects dataset
README.md - CLI workflow → DynamicBot: creates model
README.md - Dataset handling → Config utilities: prepares data paths
data/_dataset.py - Dataset handling → Tokenization and vocabulary: loads vocabulary
data/_dataset.py - Reddit preparation → Data preprocessing: uses helpers
data/reddit_preprocessor.py - Dataset handling → Input batching: provides TFRecords
- DynamicBot → Model lifecycle: extends model base
chatbot/dynamic_models.py - DynamicBot → Model operations: uses model operations
chatbot/dynamic_models.py - DynamicBot → Encoders and embeddings: uses encoder components
- DynamicBot → Decoders: uses decoder components
- Decoders → Recurrent cells: uses recurrent cells
chatbot/components/decoders.py - Bucketed models → Legacy training: trains through
chatbot/legacy/_train.py - Bucketed models → Legacy decoding: decodes through
chatbot/legacy/_decode.py - Model lifecycle → Config utilities: saves model config
chatbot/_models.py - Developer → Frozen model utility: freezes trained model
- Flask application → Chat and user APIs: registers routes
webpage/deepchat/__init__.py - Website visitor → Chat interface: submits chat
README.md - Chat interface → Chat and user APIs: sends AJAX request
README.md - Chat and user APIs → User and chat forms: renders forms
webpage/deepchat/main/views.py - Chat and user APIs → Frozen chatbot adapter: invokes chatbot
webpage/deepchat/main/views.py - Chat and user APIs → Conversation records: records conversations
webpage/deepchat/main/views.py - Frozen chatbot adapter → Config utilities: loads model config