Code Monkey home page Code Monkey logo

rasa-ui's Introduction

Docker Automated build

Rasa UI

Rasa UI is a web application built on top of, and for Rasa. Rasa UI provides a web application to quickly and easily be able to create and manage bots, NLU components (Regex, Examples, Entities, Intents, etc.) and Core components (Stories, Actions, Responses, etc.) through a web interface. It also provides some convenience features for Rasa, like training and loading your models, monitoring usage or viewing logs.

Features

  • UI for creating and managing training data - Examples, Intents, Entities, Synonyms, Regex, Stories, Actions, Responses
  • Manage multiple bots from a single UI/instance of Rasa UI
  • Create, manage and load different versions of your models for testing and optimizing
  • Log requests for usage tracking, history and improvements to your models
  • Easily execute intent parsing using different models
  • Data is stored in a SQLite DB for backing up/sharing
  • Can be used with or without a Rasa backend to manage your training data

Getting Started

Rasa UI can run on your Rasa instance, or on a separate machine. Technically Rasa is not required, you could just use the UI for managing training data.

Prerequisites

Node.js/npm - Serves Rasa UI - Required

Rasa - Developed against Version 1.2+ - Optional

Installing

  1. Clone/download the Rasa UI repository or a release
  2. Install npm packages.
  3. Set Rasa Server variable in package.json
git clone https://github.com/paschmann/rasa-ui.git
cd rasa-ui
npm install

Running

Run npm start from the server folder (rasa-ui)

npm start

Your web application should be available on http://localhost:5001

Running from Docker

If you already have a Rasa instance setup and running, you can run Rasa UI from docker hub using paschmann/rasa-ui. You will need to edit the environment variables, specifically the rasa_endpoint.

If you dont have a Rasa instance setup, you can run both Rasa and Rasa UI using the docker-compose file, copy the file to a local directory and run the command below:

docker-compose up

The docker-compose up command will use the docker-compose.yml file to create both the Rasa container and Rasa UI container, and create a networked connection between both.

Upgrading

Because Rasa UI uses a Database to store training data, and other content, in the event the database schema changes, you will need to modify your database when upgrading to newer versions of Rasa UI. Please review the server/db migration folder for upgrade scripts from and to newer versions if you have existing data and want to maintain it. If you are upgrading from Rasa UI prior to v.3.0.0 there is no data migration path as previously postgres was used, and now sqlite is being used.

Logging

Since Rasa UI can be used to log events/intent parsing/training etc. we would suggest changing your endpoints for your API calls to "pass through" Rasa UI. All API requests are simply logged, forwarded to Rasa and then returned.

e.g. Instead of POST'ing to your Rasa instance which is normally something like http://localhost:5005/model/parse?q=hello you can POST to Rasa UI (e.g. http://localhost:5001/api/v2/rasa/model/parse?q=hello)

Contributing

Please read contributing.md for details on our code of conduct, and the process for submitting pull requests to us.

Contributers

Rasa UI is possible thanks to all the awesome contributers, thank you!

  • Pradeep Mamillapalli
  • elvay1
  • huberrom
  • ClaasBrueggemann
  • btran10
  • btotharye
  • beevelop

License

This project is licensed under the MIT License - see the license file for details

rasa-ui's People

Contributors

arshidkv12 avatar ayashjorden avatar beevelop avatar btotharye avatar btran10 avatar btran55 avatar claasbrueggemann avatar deep-blue-2013 avatar dependabot[bot] avatar elvay1 avatar huberrom avatar j-a-h-i-r avatar joshuaze avatar oceania2018 avatar paschmann avatar pradeepmvn avatar sap-it avatar yhdesai 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  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  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

rasa-ui's Issues

Publish the UI on Docker Hub

I had to publish my own copy of the UI to Docker Hub. It would be nice if you had a pre-baked one, seeing as you have a Dockerfile already in the repo.

Issue in starting rasa UI

Hi,
I have setup the rasa-ui along with all pre-requisites. Whenever i try to start rasa-ui using "npm start" command I am getting following issues:

[email protected] start /var/rasa/rasaui
node server/server.js

/var/rasa/rasaui/server/server.js:113
console.log('Rasa UI Server: http://localhost:' + listener.address().port);
^

TypeError: Cannot read property 'port' of null
at checkRasaUI (/var/rasa/rasaui/server/server.js:113:71)
at Object. (/var/rasa/rasaui/server/server.js:107:1)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:387:7)
at startup (bootstrap_node.js:153:9)
at bootstrap_node.js:500:3

npm ERR! Linux 4.13.0-1011-gcp
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.13.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node server/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node server/server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the RasaUI package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server/server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs RasaUI
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls RasaUI
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /var/rasa/rasaui/npm-debug.log

Please help me to resolve it.

Change Default Username and Password

I want to start by saying that this is an awesome tool. Thank you for your time and effort in building/sharing Rasa UI. I have been working through an issue that I’ve been stuck on for some time. I would like to change the Rasa UI default login from admin/admin to something custom, but I’m having some trouble in doing so.

  1. Is changing the username and password from admin/admin possible?
  2. If so, where or how can it be changed?

Thank you in advance for your help.

Issue Proxying Rasa Parse

So I setup the docker instance and modified the rasanluendpoint to include my address where my Rasa instance is.

So then I sent the following command to the Rasa UI to parse hoping it would go to that system but I'm getting a auth error and not sure what the payload expects:

http://192.168.99.100:5001/api/v2/rasa/parse - the URL I used
params = {"q": question, "project": "chatbot"} - the payload and question is just a simple hello.

The error I get is:

{'message': 'No Authorization header.', 'success': False}

So what is the right format for this call?

Thanks

Initial setup issues

Hey!
This seems like an awesome project but it's really lacking documentation or I can't find it.

Anyways the issue I am facing:

  1. Installed rasa_nlu, node, postgres (ran the db_Create.sql script).
  2. Installed the rasa_ui on the same server and changed the package.json to localhost:port for both postgres and rasa

Now when I login via the ui (admin/admin) and try to create an agent. It does nothing. I don't see anything in the npm logs.

Any ideas?

Postgres DB Connection Error: error: password authentication failed for user "postgres" Using connection string from: package.json

I am getting error Postgres DB Connection Error: error: password authentication failed for user "postgres"
Using connection string from: package.json when i run npm start

My postgres user password is "root".packages.json file mention

"config": {
"rasanluendpoint": "http://localhost:5000",
"rasacoreendpoint": "http://localhost:5005",
"coresecuritytoken": "",
"nlusecuritytoken": "",
"cacheagents": false,
"jwtsecret": "th1s1sn0t0nlyths3cr3tbutth3m0st1mp0rtAntp13c30f1nf0rmAt10nf0rth1sAppl1cAt10n",
"postgresserver": "postgres://root:rasaui@localhost:5432/rasaui"
}

Thanks

Documentation is incorrect for parse request pass-through route

Documentation claims we can request GET http://localhost:5001/api/parse?q=hello%20there however this is incorrect.

Correct URL is POST http://localhost:5001/api/v2/rasa/parse?q=hello%20there.

It also does not mention that authentication is required. I had to copy my JWT from the browser cache and put it in the "Authorization" header. Is there a better way? Does the token expire? And if so, how can I get another token via the authentication endpoints? All this needs to be documented.

No Train button visible on Ubuntu 16.04

There is no button to Train, despite seeing it in screenshots of the UI (A green button). The only error on install was with an "optional" dependency, fsevent. Also, I cannot bypass the standards rasa /parse?q= call, per the instructions, as it merely says /parse and /api/parse are not valid. I looked at the routes and I saw nothing for parse. It is running on an AWS instance that is running many third party programs. I am familiar with permissions, port forwarding, etc.

I think the button not showing is due to a series of console warnings related to font-awesome issues?

Image - http://ai.kadho.cn/font-issues.jpg

Rasa port 5000 - Working well
RasaUI port 5001 - Can create agents,entities,intents, but cannot train and cannot use /parse?q= or /api/parse?q=

It would seem the documentation is out of date.

Console errors on fresh install

Steps to replicate

  • Do a fresh install of rasa-ui and rasa-nlu as per the installation instructions
  • Train a model with the tutorial data
  • Check that Rasa NLU is responding as expected on port 5000
    curl -XPOST localhost:5000/parse -d '{"q":"I am looking for Chinese food"}' | python -mjson.tool
  • Update package.json in rasaui to point to localhost:5000 for rasa and update postgres string
  • Open http://localhost:5001/
  • Log in to UI with admin:admin

Observed

  • Everything looks correct in the UI, on the dashboard page is says "1 available model"
  • Trying to click on almost any button causes errors in the console though, mostly 500s.
  • If you just stay on the dashboard page you'll get the following errors in the console: (added a screenshot as it's easier to read)

screen shot 2017-11-01 at 15 38 43

:5001/#!/agent/add:1 Failed to decode downloaded font: http://localhost:5001/assets/css/fonts/Simple-Line-Icons.woff2?v=2.4.0 :5001/#!/agent/add:1 OTS parsing error: Failed to convert WOFF 2.0 font to SFNT :5001/#!/agent/add:1 Failed to decode downloaded font: http://localhost:5001/assets/css/fonts/fontawesome-webfont.woff2?v=4.6.3 :5001/#!/agent/add:1 OTS parsing error: Failed to convert WOFF 2.0 font to SFNT :5001/#!/agent/add:1 Failed to decode downloaded font: http://localhost:5001/assets/css/fonts/fontawesome-webfont.woff?v=4.6.3 :5001/#!/agent/add:1 OTS parsing error: incorrect file size in WOFF header settings Failed to load resource: the server responded with a status of 500 (unknown) angular.js:14525 Possibly unhandled rejection: {"data":{"status":"error","message":"Invalid status code: 0"},"status":500,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/v2/settings","params":{},"headers":{"Accept":"application/json, text/plain, */*","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwibmFtZSI6IlBvcnRhbCBBZG1pbmlzdHJhdG9yIiwiaWF0IjoxNTA5NTQ5NDUyfQ.NwOc99QG1YsPXDXptk93j9oJAiHAyqWgbNiLqhCJILc"}},"statusText":"unknown"} (anonymous) @ angular.js:14525 (anonymous) @ angular.js:11008 g @ angular.js:16860 $digest @ angular.js:17971 $apply @ angular.js:18269 l @ angular.js:12387 A.onload @ angular.js:12541 intent_usage_total Failed to load resource: the server responded with a status of 500 (unknown) angular.js:14525 Possibly unhandled rejection: {"data":{"status":"error","message":"Invalid status code: 0"},"status":500,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/v2/intent_usage_total","headers":{"Accept":"application/json, text/plain, */*","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwibmFtZSI6IlBvcnRhbCBBZG1pbmlzdHJhdG9yIiwiaWF0IjoxNTA5NTQ5NDUyfQ.NwOc99QG1YsPXDXptk93j9oJAiHAyqWgbNiLqhCJILc"}},"statusText":"unknown"} (anonymous) @ angular.js:14525 (anonymous) @ angular.js:11008 g @ angular.js:16860 $digest @ angular.js:17971 $apply @ angular.js:18269 l @ angular.js:12387 A.onload @ angular.js:12541 request_usage_total Failed to load resource: the server responded with a status of 500 (unknown) angular.js:14525 Possibly unhandled rejection: {"data":{"status":"error","message":"Invalid status code: 0"},"status":500,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/v2/request_usage_total","headers":{"Accept":"application/json, text/plain, */*","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwibmFtZSI6IlBvcnRhbCBBZG1pbmlzdHJhdG9yIiwiaWF0IjoxNTA5NTQ5NDUyfQ.NwOc99QG1YsPXDXptk93j9oJAiHAyqWgbNiLqhCJILc"}},"statusText":"unknown"} (anonymous) @ angular.js:14525 (anonymous) @ angular.js:11008 g @ angular.js:16860 $digest @ angular.js:17971 $apply @ angular.js:18269 l @ angular.js:12387 A.onload @ angular.js:12541 avg_intent_usage_by_day Failed to load resource: the server responded with a status of 500 (unknown) angular.js:14525 Possibly unhandled rejection: {"data":{"status":"error","message":"Invalid status code: 0"},"status":500,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/v2/avg_intent_usage_by_day","headers":{"Accept":"application/json, text/plain, */*","Authorization":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwibmFtZSI6IlBvcnRhbCBBZG1pbmlzdHJhdG9yIiwiaWF0IjoxNTA5NTQ5NDUyfQ.NwOc99QG1YsPXDXptk93j9oJAiHAyqWgbNiLqhCJILc"}},"statusText":"unknown"}

npm bugs RasaUI

Not able to connect Postgres to nodeJS
Updated IP address for Rasa server
"config": {
"rasaserver": "http://localhost:5000",
"postgresConnectionString": "postgres://postgres:password@localhost:5432/rasaui"
}

Error
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose config Skipping project config: C:\Users\ADMIN/.npmrc. (matches userconfig)
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info lifecycle [email protected]prestart: [email protected]
7 silly lifecycle [email protected]
prestart: no script for prestart, continuing
8 info lifecycle [email protected]start: [email protected]
9 verbose lifecycle [email protected]
start: unsafe-perm in lifecycle true
10 verbose lifecycle [email protected]start: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\ADMIN\node_modules.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Broadcom\WHL;C:\Program Files\Broadcom\WHL\syswow64;C:\Program Files\Broadcom\WHL\SysWow64;C:\Program Files\Broadcom\WHL\SysWow64\syswow64;C:\Program Files (x86)\Intel\Services\IPT;C:\Program Files (x86)\Common Files\lenovo\easyplussdk\bin;C:\Program Files (x86)\Java\jdk1.7.0_79\bin;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\MinGW\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Python27;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\PostgreSQL\9.6\bin;C:\Program Files\PostgreSQL\9.6\lib;C:\Users\ADMIN\Anaconda2;C:\Users\ADMIN\Anaconda2\Scripts;C:\Users\ADMIN\Anaconda2\Library\bin;C:\Users\ADMIN\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Users\ADMIN\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin;C:\Users\ADMIN\AppData\Roaming\npm
11 verbose lifecycle [email protected]
start: CWD: C:\Users\ADMIN
12 silly lifecycle [email protected]start: Args: [ '/d /s /c', 'node server/server.js' ]
13 silly lifecycle [email protected]
start: Returned: code: 1 signal: null
14 info lifecycle [email protected]~start: Failed to exec start script
15 verbose stack Error: [email protected] start: node server/server.js
15 verbose stack Exit status 1
15 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
15 verbose stack at emitTwo (events.js:106:13)
15 verbose stack at EventEmitter.emit (events.js:191:7)
15 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
15 verbose stack at emitTwo (events.js:106:13)
15 verbose stack at ChildProcess.emit (events.js:191:7)
15 verbose stack at maybeClose (internal/child_process.js:891:16)
15 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
16 verbose pkgid [email protected]
17 verbose cwd C:\Users\ADMIN
18 error Windows_NT 10.0.15063
19 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start"
20 error node v6.11.2
21 error npm v3.10.10
22 error code ELIFECYCLE
23 error [email protected] start: node server/server.js
23 error Exit status 1
24 error Failed at the [email protected] start script 'node server/server.js'.
24 error Make sure you have the latest version of node.js and npm installed.
24 error If you do, this is most likely a problem with the RasaUI package,
24 error not with npm itself.
24 error Tell the author that this fails on your system:
24 error node server/server.js
24 error You can get information on how to open an issue for this project with:
24 error npm bugs RasaUI
24 error Or if that isn't available, you can get their info via:
24 error npm owner ls RasaUI
24 error There is likely additional logging output above.
25 verbose exit [ 1, true ]

Prompt for Delete when Adding Intent Response

When adding an Intent response do the following:

  1. Add a response text
  2. Press Enter

Expectation: The new text should be added and focus moves back to the text box

Actual: When pressing enter, it prompts for deleting the response.

Setup Issues

Perhaps similar problems to #31
But I am running on OS X 10.12 so wiki installation guide for ubuntu makes little sense
I have the UI open, logged in but New Agent Save does nothing.

I have imported dbcreate.sql into postgres, but I don't have a rasaui database listed
Reading careless25's notes, create database rasaui;
I think perhaps my import went straight into postgres default database.

It does not say anywhere in the instructions to import sql into rasaui database, but is this necessary?
Do I need a particular username password combination?

Some details would be useful regarding database and user requirements? Can anyone supply them?

No Authrization Header

I managed to run the RASA UI but we encountered problem when I clicked on training agent this error appeared.

Error occured while training. Response Code : 401 Body{"success":false,"message":"No Authorization header."}

user expressions not editable

Great work! I think that if the User Expressions in "Intent Details" would be editable, it could help a lot in making a training file. For now, they are not editable. So, if I wanted a small change to the expression, I would have to first delete the previous one and write a new one.

I hope i was clear in defining the issue

Best Regards

Passthrough parse URL does not have the same behaviour as requesting a parse from RASA Core directly

A request to RASA Core at http://localhost:7000/parse?q=hello%20there returns this data:

{
  "entities": [],
  "intent": {
    "confidence": 1.0,
    "name": "greet"
  },
  "text": "hello there"
}

Whereas a request via the RASA UI parse middleware at http://localhost:7001/api/v2/rasa/parse?q=hello%20there returns this:

{
    "error": "Exception caught !!"
}

AND throws an error!

rasa-ui_1   | Rasa NLU Parse Request -> http://rasa-core:7000/parse
rasa-ui_1   | Create Initial cache
rasa-ui_1   | Object Inserted into Cache
rasa-ui_1   | rasa_response:+++ {
rasa-ui_1   |   "error": "Invalid parse parameter specified"
rasa-ui_1   | }
rasa-ui_1   | TypeError: Cannot read property 'name' of undefined
rasa-ui_1   |     at /usr/src/app/server/routes/middleware.js:165:59
rasa-ui_1   |     at NodeCache.module.exports.NodeCache.get (/usr/src/app/node_modules/node-cache/lib/node_cache.js:101:11)
rasa-ui_1   |     at NodeCache.get (/usr/src/app/node_modules/node-cache/lib/node_cache.js:12:59)
rasa-ui_1   |     at updateCacheWithRasaNluResponse (/usr/src/app/server/routes/middleware.js:158:17)
rasa-ui_1   |     at Request._callback (/usr/src/app/server/routes/middleware.js:105:7)
rasa-ui_1   |     at Request.self.callback (/usr/src/app/node_modules/request/request.js:186:22)
rasa-ui_1   |     at emitTwo (events.js:106:13)
rasa-ui_1   |     at Request.emit (events.js:191:7)
rasa-ui_1   |     at Request.<anonymous> (/usr/src/app/node_modules/request/request.js:1163:10)
rasa-ui_1   |     at emitOne (events.js:96:13)
rasa-ui_1   |     at Request.emit (events.js:188:7)
rasa-ui_1   |     at IncomingMessage.<anonymous> (/usr/src/app/node_modules/request/request.js:1085:12)
rasa-ui_1   |     at IncomingMessage.g (events.js:292:16)
rasa-ui_1   |     at emitNone (events.js:91:20)
rasa-ui_1   |     at IncomingMessage.emit (events.js:185:7)
rasa-ui_1   |     at endReadableNT (_stream_readable.js:974:12)
rasa-ui_1   | DB Error while getting agent details.
rasa-ui_1   | { error: there is no parameter $1
rasa-ui_1   |     at Connection.parseE (/usr/src/app/node_modules/pg/lib/connection.js:539:11)
rasa-ui_1   |     at Connection.parseMessage (/usr/src/app/node_modules/pg/lib/connection.js:366:17)
rasa-ui_1   |     at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:105:22)
rasa-ui_1   |     at emitOne (events.js:96:13)
rasa-ui_1   |     at Socket.emit (events.js:188:7)
rasa-ui_1   |     at readableAddChunk (_stream_readable.js:176:18)
rasa-ui_1   |     at Socket.Readable.push (_stream_readable.js:134:10)
rasa-ui_1   |     at TCP.onread (net.js:559:20)
rasa-ui_1   |   name: 'error',
rasa-ui_1   |   length: 94,
rasa-ui_1   |   severity: 'ERROR',
rasa-ui_1   |   code: '42P02',
rasa-ui_1   |   detail: undefined,
rasa-ui_1   |   hint: undefined,
rasa-ui_1   |   position: '41',
rasa-ui_1   |   internalPosition: undefined,
rasa-ui_1   |   internalQuery: undefined,
rasa-ui_1   |   where: undefined,
rasa-ui_1   |   schema: undefined,
rasa-ui_1   |   table: undefined,
rasa-ui_1   |   column: undefined,
rasa-ui_1   |   dataType: undefined,
rasa-ui_1   |   constraint: undefined,
rasa-ui_1   |   file: 'parse_expr.c',
rasa-ui_1   |   line: '824',
rasa-ui_1   |   routine: 'transformParamRef' }

Surely the behaviour should be identical between the two?

Ability to Trigger training from rasa-ui

Enhancement: Each Agent will have a button to start the training process. This will export the Agent configuration and post it to RASA server in its format. Then keep checking the status for configured polling interval.

If there is no active work on this enhancement, i will work on it.

Please provide a good example

Dear community,
I am just starting out with RASA in general, and thus I tried this tutorial:
https://core.rasa.ai/tutorial_basics.html#goal

I would like to implement the same example, or any other example for that matter inside your UI.

may anyone please provide a basic "agent" example so I can import it using the "import agent" upload button?

I fail to find or to understand what the word "agent" stands for, as I see in rasa-npl no such word is used
such as here:
https://core.rasa.ai/tutorial_basics.html#goal

I am sorry if this is not considered an issuse, but I think lack of proper examples or documentation, is definetly an issuse in any project.

thank you!

Connection errors are not output in the terminal

Errors connecting to PostgreSQL and Rasa Core are swallowed and do not get output in the terminal. This makes debugging issues with the setup unnecessarily painful.

Consider adding appropriate error output.

Limit on training data size

There is a limit on the training data size when trying to upload an existing dataset. This makes it really hard for existing models to be imported over to rasa-ui.

e.g.:

{message: "request entity too large", expected: 154631, length: 154631, limit: 102400, type: "entity.too.large"}

Please update bootstrap and add popper.js

Hello on rasa-ui have an issue to update that it's using bootstrap old version and got some error on tradition hope you update new version of bootstrap and popper.js

Separate config into a separate file

Rasa Core's config is stored in a separate "config.json" and not intertwined with the unrelated "package.json". This means we can use volumes in Docker to overwrite the config file with the appropriate values without needing the rest of the package properties.

My current approach has involved building and pushing a straight copy of RASA UI to Docker Hub, and creating a new Dockerfile in a separate repo to setup the configuration for the UI. I've included these lines for setting the config values. This would be unnecessary if the config was in its own file.

FROM recombix/paschmann-rasa-ui:0.2.0

# Add our configuration to the package file.
RUN npm install -g [email protected]
RUN json -I -f ./package.json -e 'this.config.rasaserver="http://rasa-core:7000"; this.config.jwtsecret="XXX"; this.config.postgresConnectionString="XXX"'

issue in response while training

i have problem at the time of testing trained data.it shows me Response object but entities is a empty array and intent contains "text" as your query and "name" as "greet". how can i get the full response??

training fails since rasa_nlu expects data in json file

Able to add the intents under agents screen, but couldn't link intents and entities ( another issue anyway).

Want to use "mitie_sklearn" for the training and "mitie" for the extraction. How to achieve this using rasa-ui?

Training fails with below error. Let me know any configuration changes required to get rid of this error.

rasa_nlu ver: 0.9.0a3

postgrest up and running

started rasa server as:
python -m rasa_nlu.server &

POST: /train?model=production -> http://rasahost:5000/train?model=production
INFO:rasa_nlu.data_router:Starting model training
[12/Jun/2017:00:25:25 -0700] "POST /nlu_log HTTP/1.1" 201 - "" ""
INFO:rasa_nlu.data_router:Training process <Process(Process-2, started)> started
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
[2017-06-12 00:25:25] "POST /train?model=production HTTP/1.1" 200 185 0.014566
    self.run()
  File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "rasa_nlu/train.py", line 73, in do_train
    training_data = load_data(config['data'])
  File "rasa_nlu/converters.py", line 255, in load_data
    fformat = guess_format(files)
  File "rasa_nlu/converters.py", line 225, in guess_format
    file_data = json.loads(f.read())
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
GET: /status -> http://rasahost:5000/status

Not able to access api/parse

When try to access api/parse endpoint I am getting the below error:

<title>Error</title>
Cannot GET /api/parse

I even tried the POST but its the same error.

Cannot start the server

When I try to start with npm start it gives me following error
Registry returned 404 for GET on https://registry.npmjs.org/rasaui
I have changed all capital letters to simple in the package name, since it previously gave me an error that package name should be all simple.

Full text of npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'bugs', 'rasaui' ]
2 info using [email protected]
3 info using [email protected]
4 silly fetchPackageMetaData rasaui
5 silly fetchNamedPackageData rasaui
6 silly mapToRegistry name rasaui
7 silly mapToRegistry using default registry
8 silly mapToRegistry registry https://registry.npmjs.org/
9 silly mapToRegistry uri https://registry.npmjs.org/rasaui
10 verbose request uri https://registry.npmjs.org/rasaui
11 verbose request no auth needed
12 info attempt registry request try #1 at 11:27:30 AM
13 verbose request id e00d983a5fe5b97c
14 http request GET https://registry.npmjs.org/rasaui
15 http 404 https://registry.npmjs.org/rasaui
16 verbose headers { 'content-type': 'application/json',
16 verbose headers 'cache-control': 'max-age=0',
16 verbose headers 'content-length': '2',
16 verbose headers 'accept-ranges': 'bytes',
16 verbose headers date: 'Fri, 11 Aug 2017 11:27:31 GMT',
16 verbose headers via: '1.1 varnish',
16 verbose headers age: '0',
16 verbose headers connection: 'keep-alive',
16 verbose headers 'x-served-by': 'cache-sea1040-SEA',
16 verbose headers 'x-cache': 'MISS',
16 verbose headers 'x-cache-hits': '0',
16 verbose headers 'x-timer': 'S1502450851.881302,VS0,VE311',
16 verbose headers vary: 'Accept-Encoding' }
17 silly get cb [ 404,
17 silly get { 'content-type': 'application/json',
17 silly get 'cache-control': 'max-age=0',
17 silly get 'content-length': '2',
17 silly get 'accept-ranges': 'bytes',
17 silly get date: 'Fri, 11 Aug 2017 11:27:31 GMT',
17 silly get via: '1.1 varnish',
17 silly get age: '0',
17 silly get connection: 'keep-alive',
17 silly get 'x-served-by': 'cache-sea1040-SEA',
17 silly get 'x-cache': 'MISS',
17 silly get 'x-cache-hits': '0',
17 silly get 'x-timer': 'S1502450851.881302,VS0,VE311',
17 silly get vary: 'Accept-Encoding' } ]
18 silly fetchPackageMetaData Error: Registry returned 404 for GET on https://registry.npmjs.org/rasaui
18 silly fetchPackageMetaData at makeError (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:264:12)
18 silly fetchPackageMetaData at CachingRegistryClient. (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:242:14)
18 silly fetchPackageMetaData at Request._callback (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:172:14)
18 silly fetchPackageMetaData at Request.self.callback (/usr/share/npm/node_modules/request/request.js:198:22)
18 silly fetchPackageMetaData at emitTwo (events.js:87:13)
18 silly fetchPackageMetaData at Request.emit (events.js:172:7)
18 silly fetchPackageMetaData at Request. (/usr/share/npm/node_modules/request/request.js:1082:10)
18 silly fetchPackageMetaData at emitOne (events.js:82:20)
18 silly fetchPackageMetaData at Request.emit (events.js:169:7)
18 silly fetchPackageMetaData at IncomingMessage. (/usr/share/npm/node_modules/request/request.js:1009:12)
18 silly fetchPackageMetaData error for rasaui { [Error: Registry returned 404 for GET on https://registry.npmjs.org/rasaui] pkgid: 'rasaui', statusCode: 404, code: 'E404' }
19 verbose stack Error: Registry returned 404 for GET on https://registry.npmjs.org/rasaui
19 verbose stack at makeError (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:264:12)
19 verbose stack at CachingRegistryClient. (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:242:14)
19 verbose stack at Request._callback (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:172:14)
19 verbose stack at Request.self.callback (/usr/share/npm/node_modules/request/request.js:198:22)
19 verbose stack at emitTwo (events.js:87:13)
19 verbose stack at Request.emit (events.js:172:7)
19 verbose stack at Request. (/usr/share/npm/node_modules/request/request.js:1082:10)
19 verbose stack at emitOne (events.js:82:20)
19 verbose stack at Request.emit (events.js:169:7)
19 verbose stack at IncomingMessage. (/usr/share/npm/node_modules/request/request.js:1009:12)
20 verbose statusCode 404
21 verbose pkgid rasaui
22 verbose cwd /home/ubuntu/rasa_nlu/rasaui
23 error Linux 4.4.0-1013-aws
24 error argv "/usr/bin/nodejs" "/usr/bin/npm" "bugs" "rasaui"
25 error node v4.2.6
26 error npm v3.5.2
27 error code E404
28 error 404 Registry returned 404 for GET on https://registry.npmjs.org/rasaui
29 error 404
30 error 404 'rasaui' is not in the npm registry.
31 error 404 You should bug the author to publish it (or use the name yourself!)
32 error 404 Note that you can also install from a
33 error 404 tarball, folder, http url, or git url.
34 verbose exit [ 1, true ]

Integration with Rasa Core

Add additional support to model domain and stories for rasa core from rasa-ui. This enhancement will create new tables in Postgres and all the data related to core models will be persisted to it.

Issue in response after training a model

Hi,
I have setup the rasa-ui along with all pre-requisites. I created agents, intents, expressions, entities and all but after completing the training i am getting null in intent response. below is the training model:
{
"rasa_nlu_data": {
"common_examples": [
{
"intent": "restaurant_search",
"text": "show me chinese restaurants",
"entities": [
{
"start": 8,
"end": 16,
"value": "chinese ",
"entity": "cuisine",
"entity_id": 3
}
]
},
{
"intent": "restaurant_search",
"text": "I am looking for Chinese food",
"entities": [
{
"start": 17,
"end": 24,
"value": "Chinese",
"entity": "cuisine",
"entity_id": 3
}
]
},
{
"intent": "greet",
"text": "Hi",
"entities": []
},
{
"intent": "greet",
"text": "Hello",
"entities": []
}
]
}
}

Response I am getting in console is:
{"entities": [], "intent": null, "text": "Hello", "intent_ranking": []}

Error in console is: rasa_response:+++
TypeError: Cannot read property 'name' of null

Please suggest me what I am missing

Thanks and Regards
Harsh

Tokens in the RASA Core URI are not supported correctly

I want to set my RASA Core URI to http://rasa-core:7000/?token=XXX but the UI doesn't like this and ends up trying to request URIs like http://rasa-core:7000/?token=XXX/config which obviously don't work.

Upgrading the version of Node and using theURL() API to parse the URL into its constituent components will allow easy handling of this case.

Train API is getting called 6 times for every single train request from UI

I have initiated the training only once but there are 6 train requests being sent from UI. I have configured 3 intents with 5 utterances each. When I train this agent it's getting triggered 6 times when I checked the log.
I am using "mitie" pipeline in config.json.

I am using the default config.py file.
"name": None,
"config": DEFAULT_CONFIG_LOCATION,
"data": None,
"emulate": None,
"language": "en",
"log_file": None,
"log_level": 'INFO',
"mitie_file": os.path.join("data", "total_word_feature_extractor.dat"),
"spacy_model_name": None,
"num_threads": 1,
"max_training_processes": 1,
"path": "models",
"port": 5000,
"server_model_dirs": None,
"token": None,
"cors_origins": [],
"max_number_of_ngrams": 7,
"pipeline": [],
"response_log": "logs",
"aws_endpoint_url": None,
"duckling_dimensions": None,
"ner_crf": {
"BILOU_flag": True,
"features": [
["low", "title", "upper", "pos", "pos2"],
["bias", "low", "word3", "word2", "upper", "title", "digit", "pos", "pos2", "pattern"],
["low", "title", "upper", "pos", "pos2"]],
"max_iterations": 50,
"L1_c": 1,
"L2_c": 1e-3
},
"intent_classifier_sklearn": {
"C": [1, 2, 5, 10, 20, 100],
"kernel": "linear"
}
}

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.