RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.91k stars 4.63k forks source link

Rasa 3.0 version migration documentation #10435

Closed souvikg10 closed 2 years ago

souvikg10 commented 2 years ago

Rasa Open Source version

3.0.0

Rasa SDK version

No response

Rasa X version

No response

Python version

3.8

What operating system are you using?

Linux

What happened?

In the version migration, one point which seems to be missing for custom components migration is the fact the process method now accepts List[Message] instead of previously accepted Message object if your components depends on the featurizers or even tokenizers .

Could be a useful addition since process method is quite a significant one.

def process(self, messages: List[Message]) -> List[Message]:

Also Curious as to why? I always assumed only one message is processed at a time.

Command / Request

No response

Relevant log output

No response

sara-tagger commented 2 years ago

Thanks for raising this issue, @TyDunn will get back to you about it soon✨

Please also check out the docs and the forum in case your issue was raised there too 🤗
joejuzl commented 2 years ago

Hi @souvikg10 please see the section "Handling Lists of Messages During Inference in an NLU Component" in the migration guide. Does this cover what you're looking for?

souvikg10 commented 2 years ago

Yeah that's exactly what i meant. I wonder how i missed it when i checked the documentation earlier.