Code Monkey home page Code Monkey logo

rasa-x-demo's Introduction

Demo Rasa Enterprise App

This is a repository showing an example bot and the setup needed to run it with Rasa Enterprise.

Development Internals

When to release a new version

This repo is kept up to date with rasa-x, and for each rasa-x minor release, there should be a rasa-x-demo release. Note that this does not generally apply to patch releases.

How to release a new version

Note: The new workflow Rasa OSS bumper has automated steps 1-5 for us. There should be a PR with the updated Rasa OSS version and trained model. Once it's merged into the base branch, please perform step 6 to release a new version of rasa-x-demo.

If you didn't see the PR, please let us know and follow the manual steps below.

  1. Update the rasa version in requirements.txt to reflect the Rasa Open Source release used in the associated rasa-x release.
  2. If there was a major config / pipeline change in rasa: Update config.yml and domain.yml to the latest recommended configuration (e.g. from rasa.cli.initial_project).
  3. Install the rasa version specified in 1. in your local environment.
  4. Train a new model by running make train.
  5. Create a PR.
  6. Wait until it's merged into master, then tag and push a new release with
    git tag 0.26.0 -m 'new minor release for compatibility with Rasa Enterprise 0.26'
    git push origin 0.26.0
    
  7. Update the rasa-x-demo version in the rasa-x repo (rasa-x/.env).

rasa-x-demo's People

Contributors

alexweidauer avatar amalsgit avatar amn41 avatar degiz avatar erohmensing avatar federicotdn avatar hotthoughts avatar mjaycub avatar mprazz avatar rasa-aadlv avatar rasabot avatar rasadsa avatar ricwo avatar sancharigr avatar tawakalt avatar tczekajlo avatar tmbo avatar twerkmeister avatar virtualroot avatar wochinge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rasa-x-demo's Issues

Encoding error

Not sure where to put this as it is a Rasa-X error and not this demo per se, but I get this when I use a domain.yml file with UTF8 encoding on Windows and some special characters (like é):

Traceback (most recent call last):
  File "c:\users\erik\anaconda3\lib\site-packages\rasa\cli\x.py", line 322, in run_locally
    local.main(args, project_path, args.data, token=rasa_x_token)
  File "c:\users\erik\anaconda3\lib\site-packages\rasax\community\local.py", line 190, in main
    project_path, data_path, session, args.port
  File "c:\users\erik\anaconda3\lib\site-packages\rasax\community\local.py", line 139, in _initialize_with_local_data
    domain_path, domain_service, COMMUNITY_PROJECT_NAME, COMMUNITY_USERNAME
  File "c:\users\erik\anaconda3\lib\site-packages\rasax\community\initialise.py", line 136, in inject_domain
    domain_yaml=read_file(domain_path),
  File "c:\users\erik\anaconda3\lib\site-packages\rasa\utils\io.py", line 125, in read_file
    return f.read()
  File "c:\users\erik\anaconda3\lib\codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 524: invalid continuation byte

What seems to happen is:

  • I store a domain.yml file in UTF8
  • Rasa-X opens the domain.yml file, modifies it, stores it with system default encoding (ISO 8859-2 for me on Windows)
  • Later it wants to open it again with UTF8 encoding, which obviously no longer works.

Enhancement : Python script to convert IBM Watson Assistant Training Data in csv format into RASA expected training data markdown format.

Hi Team,
I have written a cool script which can be used to convert IBM Watson Training Data into RASA defined format.
Recently, I shifted from IBM to RASA for my Chatbot requirement and came across this challenge.
I would like to contribute the script into the project.
Please let me know if we have a directory containing similar scripts which provides an easy way to port customers from other platforms easily. I would be happy to contribute for the IBM watson part :)

Continuously getting an sqlite error, help needed.

Traceback (most recent call last):
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
cursor, statement, parameters, context
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such table: model

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sanic/app.py", line 976, in handle_request
response = await response
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 166, in decorated_function
return await await_and_return_response(args, kwargs, request)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/api/decorators.py", line 142, in await_and_return_response
response = await response
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/api/blueprints/models.py", line 103, in get_model_for_tag
model = model_service(request).model_for_tag(project_id, tag)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/rasax/community/services/model_service.py", line 512, in model_for_tag
.filter(and
(ModelTag.tag == tag, Model.project_id == project))
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3402, in first
ret = list(self[0:1])
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3176, in getitem
return list(res)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3508, in iter
return self._execute_and_instances(context)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/orm/query.py", line 3533, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
return meth(self, multiparams, params)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1130, in _execute_clauseelement
distilled_params,
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1317, in execute_context
e, statement, parameters, cursor, context
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1511, in handle_dbapi_exception
sqlalchemy_exception, with_traceback=exc_info[2], from
=e
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 182, in raise

raise exception
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1277, in _execute_context
cursor, statement, parameters, context
File "/opt/anaconda3/envs/botenv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 593, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: model
[SQL: SELECT model.id AS model_id, model.hash AS model_hash, model.name AS model_name, model.path AS model_path, model.project_id AS model_project_id, model.version AS model_version, model.trained_at AS model_trained_at
FROM model JOIN model_tag ON model.id = model_tag.model_id
WHERE model_tag.tag = ? AND model.project_id = ?
LIMIT ? OFFSET ?]
[parameters: ('production', 'default', 1, 0)]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
2020-09-09 17:26:53 ERROR sanic.root - Exception occurred while handling uri: 'http://localhost:5002/api/projects/default/models/tags/production?token=af9c632e4e90b49276e8904bf61cf2e0'

error while running interactive training

I get the following error while running rasa interactive.
Details: I am using the new rasa 1.0.1 version with just the basic files in the project directory that are obtained with the rasa init command. while running the interactive training the training session terminates while displaying the following errors.Can anyone please kindly help me out !Thanks!

Processed Story Blocks: 100%|████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:00<00:00, 2528.21it/s, # trackers=1]
? Your input -> hey
? Your NLU model classified 'hey' with intent 'greet' and there are no entities, is this correct? Yes

WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:


Chat History

Bot You

────────────────────────────────────────────
1 action_listen
────────────────────────────────────────────
2 hey
intent: greet 0.96

2019-05-24 12:41:15 ERROR rasa.core.training.interactive - An exception occurred while recording messages.
Traceback (most recent call last):
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1349, in record_messages
endpoint, sender_id, finetune, sender_ids, plot_file
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 883, in _predict_till_next_listen
sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1274, in _plot_trackers
event_sequences[-1], event_sequences, output_file=None, max_history=2
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 467, in visualize_neighborhood
else sanitize(message.get("intent", {})).get("name", " ? "),
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 364, in sanitize
return re.sub(r"""[&\<>"'%();+]""", "", s)
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
2019-05-24 12:41:15 ERROR asyncio - Task exception was never retrieved
future: <Task finished coro=<_serve_application..run_interactive_io() done, defined at c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py:1391> exception=TypeError('expected string or bytes-like object',)>
Traceback (most recent call last):
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1399, in run_interactive_io
sender_id=uuid.uuid4().hex,
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1349, in record_messages
endpoint, sender_id, finetune, sender_ids, plot_file
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 883, in _predict_till_next_listen
sender_ids, plot_file, endpoint, unconfirmed=[ActionExecuted(action_name)]
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\interactive.py", line 1274, in _plot_trackers
event_sequences[-1], event_sequences, output_file=None, max_history=2
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 467, in visualize_neighborhood
else sanitize(message.get("intent", {})).get("name", " ? "),
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\site-packages\rasa\core\training\visualization.py", line 364, in sanitize
return re.sub(r"""[&\<>"'%();+]""", "", s)
File "c:\users\carolina\documents\rasaxdemo\rasaxbot\venv\lib\re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

Build error

Build error running on macOS High Sierra

docker build .

Step 9/12 : RUN pip install -i "https://$RASA_PYPI_USER:[email protected]/simple/" rasa_extensions ---> Running in 62847f415bc0 Looking in indexes: https://:@pypi.rasa.ai/simple/ Collecting rasa_extensions Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/pip/_internal/basecommand.py", line 228, in main status = self.run(options, args) File "/usr/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 291, in run resolver.resolve(requirement_set) File "/usr/local/lib/python2.7/site-packages/pip/_internal/resolve.py", line 103, in resolve self._resolve_one(requirement_set, req) File "/usr/local/lib/python2.7/site-packages/pip/_internal/resolve.py", line 257, in _resolve_one abstract_dist = self._get_abstract_dist_for(req_to_install) File "/usr/local/lib/python2.7/site-packages/pip/_internal/resolve.py", line 210, in _get_abstract_dist_for self.require_hashes File "/usr/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 245, in prepare_linked_requirement req.populate_link(finder, upgrade_allowed, require_hashes) File "/usr/local/lib/python2.7/site-packages/pip/_internal/req/req_install.py", line 307, in populate_link self.link = finder.find_requirement(self, upgrade) File "/usr/local/lib/python2.7/site-packages/pip/_internal/index.py", line 484, in find_requirement all_candidates = self.find_all_candidates(req.name) File "/usr/local/lib/python2.7/site-packages/pip/_internal/index.py", line 442, in find_all_candidates for page in self._get_pages(url_locations, project_name): File "/usr/local/lib/python2.7/site-packages/pip/_internal/index.py", line 587, in _get_pages page = self._get_page(location) File "/usr/local/lib/python2.7/site-packages/pip/_internal/index.py", line 705, in _get_page return HTMLPage.get_page(link, session=self.session) File "/usr/local/lib/python2.7/site-packages/pip/_internal/index.py", line 814, in get_page "Cache-Control": "max-age=600", File "/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 521, in get return self.request('GET', url, **kwargs) File "/usr/local/lib/python2.7/site-packages/pip/_internal/download.py", line 397, in request return super(PipSession, self).request(method, url, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 508, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 625, in send r = dispatch_hook('response', hooks, r, **kwargs) File "/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/hooks.py", line 31, in dispatch_hook _hook_data = hook(hook_data, **kwargs) File "/usr/local/lib/python2.7/site-packages/pip/_internal/download.py", line 189, in handle_401 username = six.moves.input("User for %s: " % parsed.netloc) EOFError: EOF when reading a line User for pypi.rasa.ai: The command '/bin/bash -c pip install -i "https://$RASA_PYPI_USER:[email protected]/simple/" rasa_extensions' returned a non-zero code: 2

Update action server without redeploying the k8 cluster

We are running Rasa X on a Kubernetes cluster. We know that the external action server can be added via the environment variable ACTION_SERVER_TAG but how do we update Rasa when we make changes to the action server? Do we have to manually go into the kubernetes cluster, change the environment variable and redeploy those changes to the k8 cluster? It doesnt seem manageable at all. We can continually make changes to the core/model using the UI or github and we would like a similar continuous development solution for the action server since we make changes to the action server almost as often as we make changes to the core.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.