# Rasa Open Source 2.0 is out now!

**URL:** <https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577>\
**Category:** Important Updates\
**Created:** [October 7, 2020, 11:54am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577 "2020-10-07T11:54:08Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 12, 2020, 9:35am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/21 "2020-10-12T09:35:00Z")

</div>

If you run python, and type `import tensorflow` and `print(tensorflow)`, what is happening?

---

<div class="post-metadata">

**Author:** ![tswordsmith](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tswordsmith/32/11357_2.png) [@tswordsmith](https://forum.rasa.com/u/tswordsmith)\
**Post date:** [October 12, 2020, 9:59am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/22 "2020-10-12T09:59:05Z")

</div>

(auraenv) c:\devp\aura\>python Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type “help”, “copyright”, “credits” or “license” for more information.

> > > import tensorflow 2020-10-12 19:58:45.876092: W tensorflow/stream\_executor/platform/default/dso\_loader.cc:59] Could not load dynamic library ‘cudart64\_101.dll’; dlerror: cudart64\_101.dll not found 2020-10-12 19:58:45.876252: I tensorflow/stream\_executor/cuda/cudart\_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.

so tensorflow is not installed atm but the GPU is not being used.

> > > print (tensorflow) \<module ‘tensorflow’ from ‘C:\Users\tariq\anaconda3\envs\auraenv\lib\site-packages\tensorflow\ **init**.py’\>

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 12, 2020, 10:15am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/23 "2020-10-12T10:15:51Z")

</div>

I understand that tensorflow is installed, but you have a driver problem, and it cannot load the needed dlls, so it uses CPU only. You have to resolve this issue before you can use the GPU.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 12, 2020, 11:39am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/24 "2020-10-12T11:39:36Z")

</div>

which part is different? they look mostly identical to me, not sure if i’m missing something

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 12, 2020, 11:44am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/25 "2020-10-12T11:44:21Z")

</div>

we’re looking into it and will let you know when there’s a fix, might not be today though

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 12, 2020, 12:08pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/26 "2020-10-12T12:08:59Z")

</div>

@akelad If there is a patch, I would still like to try it.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [October 12, 2020, 1:20pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/28 "2020-10-12T13:20:39Z")

</div>

@petasis

> @Tobias_Wochinger Here it is:

The event order is for some reason wrong. The `flight_departure_form` should come before the slot events. I just tried this out myself and the order is definitely correct. How does your domain look like and which versions of Rasa Open Source and the Rasa SDK are you using?

> the form slots that should be filled according to the domain file, were filled before a form validation was requested. In rasa 2.0, the form slots are empty. And when validation is asked from the action server, now the slot filling has to somehow happen in the actions server.

The slots should still be filled based on the slot mappings before the request is sent to the SDK. The SDK can 1) validate the extracted slots 2) Add new slot events (e.g. for custom slot mappings)

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 12, 2020, 1:33pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/29 "2020-10-12T13:33:41Z")

</div>

I am using rasa/sdk 2.0. In rasa 2.0.0rc4 I had a workarround. In rasa 2.0 I don’t know what to do. The domain is included in the archive.

When you mention the “The `flight_departure_form` should come before the slot events”, in which file you are referring to? Can you send me a “corrected” story? (I generated the stories with `rasa interactive`).

```
rasa --version
Rasa Version : 2.0.0
Rasa SDK Version : 2.0.0
Rasa X Version : None
Python Version : 3.8.5 (default, Aug 12 2020, 00:00:00) 
Operating System : Linux-5.8.12-200.fc32.x86_64-x86_64-with-glibc2.2.5
Python Path : /usr/bin/python3

```

Regarding running the form, no, no form slots are filled before calling the form activation/validation.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [October 12, 2020, 2:29pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/30 "2020-10-12T14:29:06Z")

</div>

> [@petasis](#):
>
> When you mention the “The `flight_departure_form` should come before the slot events”

That part should be done within Rasa Open Source so you don’t require a story for that.

> The domain is included in the archive.

Sorry, but where can I find this archive? 🙈

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [October 12, 2020, 2:30pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/31 "2020-10-12T14:30:46Z")

</div>

> Has Rasa X been updated to work with Rasa 2.0? I don’t see a new tag in docker hub: [Docker Hub](https://hub.docker.com/r/rasa/rasa-x/tags)

Hi @tatianaf, thanks for asking! We’ll release a compatible version end of this week / early next week 👍

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 12, 2020, 3:25pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/32 "2020-10-12T15:25:07Z")

</div>

I have created a small example, uploaded here: [Rasa 2.0: How to resolve conflicting rules?](http://forum.rasa.com/t/rasa-2-0-how-to-resolve-conflicting-rules/35671/13)

---

<div class="post-metadata">

**Author:** ![tswordsmith](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tswordsmith/32/11357_2.png) [@tswordsmith](https://forum.rasa.com/u/tswordsmith)\
**Post date:** [October 13, 2020, 1:41pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/33 "2020-10-13T13:41:47Z")

</div>

Some observations from the upgrade to Rasa 2.0.

Rasa 2.0 installs tensorflow 2.3.1. which has specific environment requirements before it can utilize a GPU. Requirements listed [here](https://www.tensorflow.org/install/gpu):

For reference my working environment is:

- GPU: GeForce GTX1070 (must be an approved GPU. see [CUDA GPUs | NVIDIA Developer](https://developer.nvidia.com/cuda-gpus))
- GPU driver - 456.38 (latest will probably work)
- CUDA toolkit - 10.1.243 (must be 10.1 version)
- cuDNN - 7.6.5 (must be 7.6 version)

It is possible to make TF work with other version combinations but this will require a recompile of the toolkit.

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 14, 2020, 8:15am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/34 "2020-10-14T08:15:49Z")

</div>

When a new version with working forms will be released? It was been a week since the release of 2.0.

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [October 14, 2020, 11:24am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/35 "2020-10-14T11:24:36Z")

</div>

Facing almost the same problem 😕 . Slots gets extracted but does not get validated using `validate_<slot_name>` function.

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [October 14, 2020, 11:27am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/36 "2020-10-14T11:27:49Z")

</div>

@petasis are you able to validate the slot filled when asked explicitly rather than in the trigger message? if yes can you share how did you do that. Thanks

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 14, 2020, 11:29am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/37 "2020-10-14T11:29:12Z")

</div>

Yes, I know 🙂 It makes rasa 2.0 unusable, doesn’t it? It is surprising that it got released in the first place, and that a week without a fix has passed.

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [October 14, 2020, 11:33am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/38 "2020-10-14T11:33:10Z")

</div>

Yes totally agree, Form is an important feature. Also i was checking their implementation. `required_slots` and `validate` functions are still there then why are they providing a new interface. I was overriding validate before, without any issue 😕 . I am also stucked 😕

---

<div class="post-metadata">

**Author:** ![petasis](https://avatars.discourse-cdn.com/v4/letter/p/e47c2d/32.png) [@petasis](https://forum.rasa.com/u/petasis)\
**Post date:** [October 14, 2020, 11:35am UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/39 "2020-10-14T11:35:49Z")

</div>

Yes, I think this is working. The problem is when the value to fill the slot is in the trigger message. I haven’t done anything special, I just followed the docs here:

> **[Forms](https://rasa.com/docs/rasa/forms/)**
>
> Follow a rule-based process of information gathering using forms in open source bot framework Rasa.

(If you had your actions working according to 2.0.0rc4, you need to change them again).

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 14, 2020, 12:01pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/40 "2020-10-14T12:01:25Z")

</div>

@noman you’re right that those functions still exist (they just read from different sources now), the idea behind moving e.g. the required\_slots definition to the domain is to make it simpler to define a form - i.e. less code. And aside from that moving the logic of the FormAction to Rasa Open Source, means that creating action servers in different languages is a lot easier. You can also hear more about this in our [2.0 webinar](https://info.rasa.com/webinar-rasa-open-source-2-0) today

---

<div class="post-metadata">

**Author:** ![noman](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/noman/32/10071_2.png) [@noman](https://forum.rasa.com/u/noman)\
**Post date:** [October 14, 2020, 12:09pm UTC](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577/41 "2020-10-14T12:09:31Z")

</div>

@akelad so can we override `validate` even now? if yes, then why i should not override it? because current guidelines here [Forms](https://rasa.com/docs/rasa/forms#validating-form-input) does not validate filled slots having logs

`2020-10-14 17:06:20 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 297 events. 2020-10-14 17:06:20 DEBUG rasa.core.policies.rule\_policy - Predicted loop ‘order\_form’. 2020-10-14 17:06:20 DEBUG rasa.core.policies.ensemble - Predicted next action using policy\_0\_RulePolicy 2020-10-14 17:06:20 DEBUG rasa.core.processor - Predicted next action ‘order\_form’ with confidence 1.00. 2020-10-14 17:06:20 DEBUG rasa.core.actions.forms - Validating user input ‘UserUttered(text: lays, intent: {‘id’: 3152659454284902011, ‘name’: ‘inform’, ‘confidence’: 0.999991774559021}, entities: [{‘entity’: ‘snack’, ‘start’: 0, ‘end’: 4, ‘confidence\_entity’: 0.8661425709724426, ‘value’: ‘lays’, ‘extractor’: ‘DIETClassifier’}])’. 2020-10-14 17:06:20 DEBUG rasa.core.actions.forms - Trying to extract requested slot ‘snack’ … 2020-10-14 17:06:20 DEBUG rasa.core.actions.forms - Got mapping ‘{‘type’: ‘from\_entity’, ‘entity’: ‘snack’}’ 2020-10-14 17:06:20 DEBUG rasa.core.actions.forms - Successfully extracted ‘lays’ for requested slot ‘snack’ 2020-10-14 17:06:20 DEBUG rasa.core.actions.forms - Validating extracted slots: {‘snack’: ‘lays’} 2020-10-14 17:06:20 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘validate\_order\_form’. 2020-10-14 17:06:20 DEBUG rasa.core.actions.forms - Request next slot ‘size’

and My custom action: from typing import Dict, Text, List

from rasa\_sdk import Tracker from rasa\_sdk.events import EventType from rasa\_sdk.executor import CollectingDispatcher from rasa\_sdk import Action from rasa\_sdk.events import SlotSet from typing import Text, List, Any, Dict from rasa\_sdk import Tracker, FormValidationAction from rasa\_sdk.types import DomainDict from rasa.shared.core.domain import Domain

class ActionSwitchFAQ(Action): def name(self) -\> Text: return “action\_switch\_faq”

```
def run(
    self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict
) -> List[EventType]:
    return [SlotSet("detailed_faq", not tracker.get_slot("detailed_faq"))]

```

class ValidateOrderForm(FormValidationAction, Action): def name(self) -\> Text: “”“Unique identifier of the form”""

```
    return "validate_order_form"

def run(
    self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict
) -> List[EventType]:
    # dispatcher.utter_message("validate_some_slot")
    return []

def validate_snack(
    self,
    slot_value: Any,
    dispatcher: CollectingDispatcher,
    tracker: Tracker,
    domain: DomainDict,
) -> Dict[Text, Any]:
    """Validate cuisine value."""
    
    print("Slot Value=", slot_value)
    if slot_value == "fries":
        print("validation succeeded")
        return {"snack": slot_value}
    else:
        print("validation failed")
        # user will be asked for the slot again
        return {"snack": None}

def validate_size(
    self,
    slot_value: Any,
    dispatcher: CollectingDispatcher,
    tracker: Tracker,
    domain: DomainDict,
) -> Dict[Text, Any]:
    """Validate cuisine value."""
    
    print("Slot Value=", slot_value)
    if slot_value == "large":
        print("validation succeeded")
        return {"size": slot_value}
    else:
        print("validation failed")
        # user will be asked for the slot again
        return {"size": None}   

```

`

[Previous page](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577.md?page=1)

[Next page](https://forum.rasa.com/t/rasa-open-source-2-0-is-out-now/35577.md?page=3)
