Update chatterbot materials for ChatterBot 1.2.13 (post 2122)#757
Open
martin-martin wants to merge 2 commits intomasterfrom
Open
Update chatterbot materials for ChatterBot 1.2.13 (post 2122)#757martin-martin wants to merge 2 commits intomasterfrom
martin-martin wants to merge 2 commits intomasterfrom
Conversation
Syncs the chatterbot/ folder with the revised tutorial (post 2122), including the new LLM integration step with Ollama. - requirements.txt: bump to ChatterBot 1.2.13 + modern spaCy/SQLAlchemy stack and add ollama 0.6.1 so step 6 works out of the box - chat.txt: update sample WhatsApp export dates to 2026 to match the tutorial - cleaner.py: refresh docstring/comment example dates - source_code_step_2/bot.py: reorder imports and format trainer.train() calls to match the updated tutorial listing - source_code_step_5: extract training from bot.py into a dedicated trainer.py - source_code_step_6/: new folder showing the Ollama hybrid configuration (BestMatch + OllamaLogicAdapter with llama3.2) - source_code_final/: mirror of step 6 with the Ollama-enabled bot.py - Regenerate db.sqlite3 in every step folder under ChatterBot 1.2.13, and drop the stale -shm / -wal sidecar files - README: document the trainer.py split, the step 6 Ollama setup, and the additional `spacy download en_core_web_sm` step Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Syncs the
chatterbot/folder with the revised ChatterBot tutorial (post 2122), which adds a new section on ChatterBot's experimental LLM integration via Ollama.requirements.txtto ChatterBot 1.2.13 and its modern spaCy / SQLAlchemy stack, plusollama==0.6.1so step 6 works out of the box.source_code_step_6/shows the hybrid configuration (BestMatch+OllamaLogicAdapteronllama3.2:latest).source_code_final/mirrors it.trainer.py;bot.pyis just the interactive loop, matching the updated tutorial listing.chat.txtdates bumped from9/15/22→1/15/26(and9/16/22→1/16/26) to match the tutorial. Cleaner docstring example updated accordingly.trainer.train([...])to match the tutorial listing.db.sqlite3under ChatterBot 1.2.13 and dropped the stale-shm/-walsidecar files.trainer.pysplit, the Ollama setup for step 6, and the extrapython -m spacy download en_core_web_smstep.Test plan
pip install -r chatterbot/requirements.txtin a fresh venv (Python 3.10+)python -m spacy download en_core_web_smsource_code_step_2/, runpython bot.pyand confirm the trained replies match the tutorial transcriptsource_code_step_5/, runpython trainer.pythenpython bot.pyand chatsource_code_step_6/(with Ollama running +ollama pull llama3.2:latest), runpython bot.pyand confirm LLM-augmented replies🤖 Generated with Claude Code