Skip to content

Releases: RasaHQ/rasa-sdk

3.6.0

13 Jun 13:42
a6c7a9a
Compare
Choose a tag to compare

Rasa_Sdk 3.6.0 (2023-06-13)

Deprecations and Removals

Features

  • #970: Add pluggy to provide ability to create sanic extensions in rasa-sdk

Improvements

  • #922: ## Problem
    Rasa knowledge base actions cannot infer the object type of an object directly from the user message without the user first asking to list all objects related to that object type. This prevents action_query_knowledge from providing a suitable response when a user asks for a certain attribute of an object even though the knowledge base has the relevant information. That is, the knowledge base actions require the slot object_type to be set to one of the primary key values in the knowledge base for it to search through the objects. Here is an example:

    Your input ->  what is the price range of Berlin Burrito Company?
    Sorry, I'm not sure I understand. Can you rephrase?
    Your input ->  list some restaurants
    Found the following objects of type 'restaurant':
    1: Gong Gan
    2: I due forni
    3: Pfefferberg
    4: Lụa Restaurant
    5: Donath
    Your input ->  what is the price range of Berlin Burrito Company?
    'Berlin Burrito Company' has the value 'cheap' for attribute 'price-range'.
    

    Proposed solution

    • The improvement requires changes to the classes ActionQueryKnowledgeBase and InMemoryKnowledgeBase under rasa-sdk.
    • The object_type can be inferred by utilizing the entity extraction (DIET) where object types are used as entities to annotate object names.
      This also requires changes to be made to slot management to enable dynamic inference of object_type.
    • The scope of the suggested solution is limited to user queries where they ask for an attribute of a given object without mentioning the object type and without needing to first ask for a list of options of the corresponding object type.
    • E.g.: If the user asks for ‘price range of Berlin Burrito Company’, then rasa will extract and set attribute slot value to ‘price-range’ and hotel slot value to ‘Berlin Burrito Company’. From this, it can be inferred that the user is talking about the object type ‘hotel’.

    Summary of Changes

    • To enable the inference of object_type using the entities the following changes were made to the existing code base:
      • Extract the list of object_types from our knowledge base using a new method get_object_types() in storage.py for the InMemoryKnowledgeBase class.
      • A new method named match_extracted_entities_to_object_type() was added in utils.py to infer the object type of a given object using the entities and list of object types
      • The relevant logic was added in actions.py to infer the object type using the above functionalities when the object type slot is not set.
      • To enable dynamic inference of object_type, changes to slot management are also required. Currently, the change is to reset the object_type slot to None after every conversation turn.

Miscellaneous internal changes

3.6.0a1

17 May 17:53
49816f8
Compare
Choose a tag to compare

Pre-release version

3.5.1

12 Apr 09:50
a07122d
Compare
Choose a tag to compare

Rasa_Sdk 3.5.1 (2023-04-11)

Miscellaneous internal changes

3.5.0

17 Mar 15:04
515ba71
Compare
Choose a tag to compare

Rasa_Sdk 3.5.0 (2023-03-17)

No significant changes.

3.4.1

06 Mar 15:52
2b34305
Compare
Choose a tag to compare

Rasa_Sdk 3.4.1 (2023-03-06)

No significant changes.

3.5.0b1

21 Feb 17:21
4466689
Compare
Choose a tag to compare

Pre-release version

3.3.1

21 Feb 10:29
bf68553
Compare
Choose a tag to compare

Rasa_Sdk 3.3.1 (2023-02-21)

Improvements

  • #877: Added CLI option --logging-config-file to enable configuration of custom logs formatting.
  • #888: Add support for Python 3.10 version.
  • #930: Added the ability to decompress deflate encoded
    json payloads for the webhook endpoint of the
    action server.

Miscellaneous internal changes

3.2.3

21 Feb 10:03
18e216b
Compare
Choose a tag to compare
  • #929: Added the ability to decompress deflate encoded
    json payloads for the webhook endpoint of the
    action server.

3.5.0a2.dev1

09 Feb 17:45
83b60b9
Compare
Choose a tag to compare

Pre-release version

3.5.0a1.dev1

18 Jan 09:42
Compare
Choose a tag to compare

Pre-release version