Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

004 task #17

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/Task1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Задание 1. Подготовка среды разработки
- [x] Установите IDE в рабочую среду.
- [x] Загрузите проект приложения из репозитория.
- [x] Внимательно изучите React-компоненты приложения.

## Анализ React-компонентов приложения.
* index.js - точка входа.
* App.js - главный компонент.
* components/Basic.js - компонент с основной разметка страницы с компонентом чата.
* содержит тело чата, где отображаются сообщения;
* и форму ввода для отправки сообщений.
4 changes: 4 additions & 0 deletions docs/Task2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Задание 2. Развёртывание веб-приложения
- [x] Загрузите и установите все необходимые зависимости npm install.
- [x] Соберите проект npm run build.
- [x] Запустите проект npm run start.
50 changes: 50 additions & 0 deletions docs/Task3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Задание 3. Установка и настройка окружения
- [x] Python (3.7-3.10): Rasa работает с версиями Python 3.7 и выше, но ниже 3.11.
- [x] pip — менеджер пакетов Python, который будет использоваться для установки Rasa.
- [x] Virtualenv (рекомендуется): использование виртуальной среды для изоляции окружения и зависимостей проекта.

## 1. Убедитесь, что pip установлен. Выполните команду:
```bash
$ python -m ensurepip --upgrade
/usr/bin/python: No module named ensurepip
```

## 2. Установите virtualenv, если он ещё не установлен:
```bash
$ pip install virtualenv
Defaulting to user installation because normal site-packages is not writeable
Collecting virtualenv
Downloading virtualenv-20.27.1-py3-none-any.whl.metadata (4.5 kB)
Collecting distlib<1,>=0.3.7 (from virtualenv)
Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
Collecting filelock<4,>=3.12.2 (from virtualenv)
Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting platformdirs<5,>=3.9.1 (from virtualenv)
Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
Downloading virtualenv-20.27.1-py3-none-any.whl (3.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 9.9 MB/s eta 0:00:00
Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.0/469.0 kB 9.3 MB/s eta 0:00:00
Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
Installing collected packages: distlib, platformdirs, filelock, virtualenv
WARNING: The script virtualenv is installed in '/home/vnsk/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed distlib-0.3.9 filelock-3.16.1 platformdirs-4.3.6 virtualenv-20.27.1

[notice] A new release of pip is available: 23.3.2 -> 24.3.1
[notice] To update, run: python3.10 -m pip install --upgrade pip
```

## Создайте виртуальное окружение:
```bash
$ python -m venv rasa_env
$ echo $?
0
```

## Активируйте виртуальное окружение:
```bash
$ source rasa_env/bin/activate
(rasa_env) $
```
28 changes: 28 additions & 0 deletions docs/Task4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Задание 4. Установка Rasa

## 1. Установите Rasa через pip:
```bash
$ pip3 install rasa
Collecting rasa
...
```

## 2. Установите библиотеку Transformers для работы с предобученными LLM моделями, такими как BERT, GPT:
```bash
$ pip install transformers
Collecting transformers
...
```

## Проверьте, что Rasa и окружение установлено, выполните команду:
```bash
$ rasa --version
.../IdeaProjects/github.com/vskurikhin/architecture-sprint-5/rasa_env/lib/python3.10/site-packages/rasa/core/tracker_store.py:1044: MovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
Base: DeclarativeMeta = declarative_base()
Rasa Version : 3.6.20
Minimum Compatible Version: 3.5.0
Rasa SDK Version : 3.6.2
Python Version : 3.10.12
Operating System : Linux-6.8.0-48-generic-x86_64-with-glibc2.35
Python Path : .../IdeaProjects/github.com/vskurikhin/architecture-sprint-5/rasa_env/bin/python
```
9 changes: 9 additions & 0 deletions rasa_env/pyvenv.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
home = /usr/bin
base-prefix = /usr
base-exec-prefix = /usr
base-executable = /usr/bin/python3.10
implementation = CPython
version_info = 3.10.12.final.0
include-system-site-packages = false
version = 3.10.12
virtualenv = 20.24.5