-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Unable to use TemplatedNaturalLanguageGenerator in NLG due to Sanic/uvicorn conflict #4140
Comments
Thanks for raising this issue, @ricwo will get back to you about it soon. |
Hi @moaazsidat,
I'm confused about this issue, since the built-in NLG server in The NLG module is used extensively in the |
We're using our own NLG service that's built using FastAPI and Uvicorn. It's just a web service that given an utterance, returns the template as json. We want to return The limitation right now is that we have to install the entire Regardless of how Sanic resolves this, I still think it highlights a need to separate Let me know if that makes sense, happy to elaborate further. |
You'd still require an installation of rasa, even if As a temporary solution until Sanic fixes the issue, can you just install rasa without Sanic for your Uvicorn webservice? I mean just cloning the repository and removing |
hmm, fair enough, yeah, had a feeling that it may be less trivial to extract it into a lib. |
@ricwo can this be closed? |
Does it make more sense to put TemplatedNaturalLanguageGenerator as part of rasa_sdk instead of rasa.core.nlg, since it is used like so:
https://github.com/RasaHQ/rasa/blob/master/examples/nlg_server/nlg_server.py#L57
The reason being that we're using something other than Sanic for our NLG server and are running into conflicting dependencies when trying to install rasa with the latest uvicorn installation due to the following Sanic/uvicorn incompatibility:
sanic-org/sanic#1629
Anyone with more knowledge of how rasa works internally comment on if this be relatively easily extracted to be part of rasa_sdk?
https://github.com/RasaHQ/rasa/tree/master/rasa/core/nlg
Or alternatively, should there be a rasa_nlg package?
The text was updated successfully, but these errors were encountered: