Skip to content

Update chatterbot materials for ChatterBot 1.2.13 (post 2122)#757

Open
martin-martin wants to merge 2 commits intomasterfrom
update/chatterbot-2122
Open

Update chatterbot materials for ChatterBot 1.2.13 (post 2122)#757
martin-martin wants to merge 2 commits intomasterfrom
update/chatterbot-2122

Conversation

@martin-martin
Copy link
Copy Markdown
Contributor

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.

  • Dependencies: upgraded requirements.txt to ChatterBot 1.2.13 and its modern spaCy / SQLAlchemy stack, plus ollama==0.6.1 so step 6 works out of the box.
  • New step 6: source_code_step_6/ shows the hybrid configuration (BestMatch + OllamaLogicAdapter on llama3.2:latest). source_code_final/ mirrors it.
  • Step 5 refactor: training is now in a dedicated trainer.py; bot.py is just the interactive loop, matching the updated tutorial listing.
  • Sample data refresh: chat.txt dates bumped from 9/15/221/15/26 (and 9/16/221/16/26) to match the tutorial. Cleaner docstring example updated accordingly.
  • Step 2 cosmetic: reordered imports and multiline trainer.train([...]) to match the tutorial listing.
  • SQLite DBs: regenerated every db.sqlite3 under ChatterBot 1.2.13 and dropped the stale -shm / -wal sidecar files.
  • README: documents the trainer.py split, the Ollama setup for step 6, and the extra python -m spacy download en_core_web_sm step.

Test plan

  • pip install -r chatterbot/requirements.txt in a fresh venv (Python 3.10+)
  • python -m spacy download en_core_web_sm
  • From source_code_step_2/, run python bot.py and confirm the trained replies match the tutorial transcript
  • From source_code_step_5/, run python trainer.py then python bot.py and chat
  • From source_code_step_6/ (with Ollama running + ollama pull llama3.2:latest), run python bot.py and confirm LLM-augmented replies

🤖 Generated with Claude Code

martin-martin and others added 2 commits April 20, 2026 12:47
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant