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

adding model parameter #3

Closed
matteoredaelli opened this issue Jun 21, 2017 · 2 comments
Closed

adding model parameter #3

matteoredaelli opened this issue Jun 21, 2017 · 2 comments

Comments

@matteoredaelli
Copy link

The /parse get request can accept a "model" parameter

$ curl 'localhost:5000/parse?q=hello&model=hotels'
$ curl -XPOST localhost:5000/parse -d '{"q":"I am looking for Chinese food", "model": "restaurants"}'

as you can see at https://github.com/RasaHQ/rasa_nlu/blob/master/docs/http.rst

is it possible to manage it in this package?

thanks
matteo

@sohlex
Copy link
Owner

sohlex commented Jun 21, 2017

Hi,
with version 1.0.6 of the package is now is possible to specify a rasa_model when instantiating the Rasa middleware.

I updated the example bot accordingly: https://github.com/sohlex/botkit-rasa/blob/master/example/bot.js#L67 .
Obviously instead of undefined the user should put a string, like 'restaurants'.

I think this covers your use case, all the queries that the bot is going to receive will be processed using the specified model. Is this the enhancement that you asked for?

Best,
Alessio

@sohlex
Copy link
Owner

sohlex commented Jul 6, 2017

Requirements are met, closing issue.

@sohlex sohlex closed this as completed Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants