PyRomusa AI — v0.11.1 🤖
- Version type: STABLE
- Release date: 2026-12-01
Overview
This version/framework focuses on creating a very simple, beginner-friendly chatbot system, built with:
- custom logic (
Chatbot() object)
- real machine learning models (
RealChatbot() object)
It exists to:
- help beginners understand how chatbot logic can work
- allow fast experimentation with simple AI-like behaviour
- avoid complex frameworks and heavy dependencies (
Chatbot() object)
What makes it different:
- you can avoid neural networks, hidden layers, ML libraries (
Chatbot() object)
- you can using LLM tehnologies (
RealChatbot() object)
- fully custom, readable logic
This version implements two types of chatbot objects:
Chatbot() (optimized for few training examples and hardware-undemanding)
RealChatbot() (optimized for large, serious projects, real experimentation and hardware-demanding)
Files Included
General structure (exactly this structure will be found if you search in 📁all versions of this repository):
|-📁PyRomusa_AI - vX.Y.Z/
|----📄README.md
|
|----📁PyRomusa_AI/
|-------- 🐍PyRomusa_AI.py
|-------- 🐍errors.py
|
|-------- 📁Datasets/
|------------ more Python files...
|
|-------- 📁Reply_Engines/
|------------ more Python files...
More exact structure (if you search in the 📁src folder):
|- 📁src/
|--- ⚙️pyproject.toml
|--- 📄README.md
├─── 📁pyromusa_ai/
|--- 🐍core.py
|--- 🐍__init__.py
|--- 🐍errors.py
├─── 📁Datasets
└─── 📁Reply_Engines
Where:
| File/Folder name |
Description |
📁PyRomusa_AI - vX.Y.Z , 📁src/ |
The main folder containing everything for that version of the framework (full framework code + 📄README.md) |
📄README.md |
Documentation for this specific version |
📁PyRomusa_AI/ , 📁pyromusa_ai/ |
The secondary folder, which only has all the code that contributes to the 100% functional PyRomusa AI |
🐍PyRomusa_AI.py , 🐍core.py |
The main/core code of PyRomusa AI |
📁Datasets/ |
Folder with some optional code for the main framework code (🐍PyRomusa_AI.py) for ready-made data to train your chatbot |
⚙️pyproject.toml |
A very important file to be able to install with pip install, but completely useless if you install PyRomusa AI manually |
🐍errors.py |
A new file from 0.6.0, here you find different types of errors that you can catch in PyRomusa AI |
📁Reply_Engines/ |
The folder containing the most important lines of code for the main goal of PyRomusa AI. These lines of code are mandatory for generating responses based on a prompt. |
What's New
-
|RealChatbot() object| More optimizers, more options: For greater flexibility and an increased capacity to experiment, I have added new optimizers from the PyTorch ecosystem—specifically, RAdam and Adafactor.
-
|RealChatbot() object| Now, training begins at step 1 instead of step 0: Since it seemed odd that the training started from step 0, it now begins at step 1, so that the steps are counted correctly.
-
|RealChatbot() object| The default values for the main training parameters have changed: Previously, in the bot.trainer.start() function, the epochs parameter was set to 100, and show_loss_every_x_epochs was set to 10. Since these values seemed somewhat high for typical training requirements, I lowered them—setting epochs=10 and show_loss_every_x_epochs=1—thereby reducing the need for manual parameter adjustments.
-
|Chatbot() object| Changed the default chatbot_name value: To match the default name in RealChatbot(), I changed ChatBot -> Chatbot.
-
|Chatbot() object| Incorrect values after reset: When the bot.reset() function was called, the chatbot's name and description were an empty string. Now, following a reset, these default values are correctly set.
-
|Chatbot() object| Optional timer for response generation + training: For those who are curious, you can measure the generation/training time directly in seconds by simply changing the value of the show_total_time_of_generating_when_ends/show_total_time_of_training_when_ends parameter from False to True.
-
|RealChatbot() object| The ability to see the number of parameters before starting training: For greater flexibility, you can call the bot.show_number_of_parameters() function even without prior training; however, performing the training step beforehand remains important (since the vocabulary acquired during training can cause the number of parameters to increase significantly).
-
|RealChatbot() object| Optional timer when generating a response: Just as a training timer was added in the previous version, this system is now also available for the bot.reply_at() function, enabled via the show_total_time_of_generating_when_ends parameter.
-
|RealChatbot() object| Default tokenizer changed: Previously, the char-level tokenizer was the default, but it has been switched to a semiwords-level tokenizer. This is because the char-level approach requires more training time, greater computational capacity, and a larger number of training examples to learn how to write even a few words with 100% accuracy. Now, with the semiwords-level tokenizer, the chatbot will train faster and can learn to produce accurate output using fewer training examples.
-
|RealChatbot() object| More keywords available for choosing a specific tokenizer type: Perhaps you are accustomed to writing words in the plural or singular, or maybe you are used to using uppercase, lowercase, or even a mix of both. Well, now, even if you make a tiny—practically negligible—typo, the tokenizer_type parameter will still understand you.
-
Specific structure for the information output upon loading a dataset: For greater clarity—so you know the source of each output—I have added a specific structure ([DATASET LOADER] ...) when you attempt to load a dataset using the bot.prepared_datasets. ... function.
-
Update to the Romanian language dataset, 'Teacher for PyRomusa AI': It has been added more training examples to be able to answer more prompts. It is now a better dataset than in the previous version.
✅ STABLE release notice:
- The API is considered stable and ready for regular use
- Core logic is implemented and tested
- Behaviour is consistent across typical use cases
- Minor bugs may still exist, but no breaking changes are expected
Quick Usage Examples
1. Creating your first functional chatbot ever
from pyromusa_ai import Chatbot
# Create a chatbot
bot = Chatbot(chatbot_name="RomusaBot")
# Add training data
bot.trainer.add_data("Hello!", "Hi there!")
bot.trainer.add_data("Bye!", "Goodbye!")
# Start training
bot.trainer.start()
# Get a response
print(bot.reply_at("Hello!"))
2. Learn to start using the framework
from pyromusa_ai import Chatbot
# Create a chatbot
bot = Chatbot()
# Get help
bot.helper.how_to_start()
Note:
Depending on how you installed PyRomusa AI, this framework, in your code, must be imported like this, one of these 2 variants:
a) If you installed with pip install ...:
from pyromusa_ai import Chatbot
b) If you installed manually from this repository, preserving file names, from 📁all versions folder:
from PyRomusa_AI import Chatbot # If your code is located in the same folder as 🐍PyRomusa_AI.py
or
from PyRomusa_AI.PyRomusa_AI import Chatbot # If your code is in the same folder as the folder that has all the resources for PyRomusa AI (📁PyRomusa_AI)