Metadata-Version: 2.4
Name: pyromusa_ai
Version: 0.11.1
Summary: A lightweight Python framework for creating simple AI chatbots with minimal code.
Author-email: Mureșan Robert <pyromusa.ai@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/Robertinoos13/PyRomusa-AI-Library
Project-URL: Repository, https://github.com/Robertinoos13/PyRomusa-AI-Library
Project-URL: Issues, https://github.com/Robertinoos13/PyRomusa-AI-Library/issues
Keywords: AI,chatbot,PyRomusaAI
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.25.0
Requires-Dist: pandas>=2.1.0
Requires-Dist: torch>=1.0.2
Requires-Dist: pyrospeak

# `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...
```

<br>

### 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`](https://docs.pytorch.org/docs/2.15/generated/torch.optim.RAdam.html) and [`Adafactor`](https://docs.pytorch.org/docs/2.15/generated/torch.optim.Adafactor.html).

- **_|`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
```python
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

```python
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 ...`:
```python
from pyromusa_ai import Chatbot
```

### b) If you installed manually from this repository, preserving file names, from `📁all versions` folder:
```python
from PyRomusa_AI import Chatbot # If your code is located in the same folder as 🐍PyRomusa_AI.py
```

or
```python
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)
```
