Skip to content
All systems
On GitHubMALULEKE-KS

Ai Chatbot Evolution Comparison

A comparative study of AI evolution: Custom ELIZA (1966 rule-based) vs Qwen LLM (2024 transformer)

  • Python
  • Hugging Face Transformers
  • PyTorch
  • Tkinter
View the source
Started
April 2026
Last push
6 months ago
Commits this year
5

Written by AI from the repository · updated 5 days agoAI

The question

Two generations of conversational AI, sixty years apart: a rule-based ELIZA (1966 design) and a modern instruction-tuned language model. What does each actually do better, side by side, on the same input?

How it works

  • ELIZA (eliza.py) — twelve regular-expression rules, each with response templates, and a reflection engine that turns "I" into "you" and "my" into "your".
  • The language model (LLM.py) — Qwen2.5-1.5B-Instruct run locally through a Hugging Face Transformers pipeline.
  • The comparison (chat_comparison.py) — a Tkinter desktop app with the two conversations side by side. One message goes to both; ELIZA answers immediately while the model generates on a background thread, so the window never freezes.

What it shows

  • ELIZA is instant and fully predictable, but it only recognises the patterns it was given.
  • The model handles open-ended input, at the cost of a large download, slower replies and answers that can't be predicted in advance.
  • The trade-off — predictability against flexibility — is the same one a team faces today when choosing between a rules engine and an LLM for a narrow task.