Upgrade a QNLP data pack

Before you upgrade to a new QuickNLP (QNLP) data pack, you need to make sure that the client application can handle the latest definition of the predefined entities.

Predefined entities save you the trouble of defining entities that are common to many applications, such as monetary amounts, Boolean values, calendar items (dates, times, or both), cardinal and ordinal numbers.

Example scenario

Let’s say that the nuance_DURATION predefined entity changed between the 5.x and 6.x data packs.

An application with a 5.x data pack would expect a response of:

{"DURATION_ABS":{"HOUR":2}}

However, the new data pack returns a different format:

{"DURATION_ABS":{"UNIT":"hour","NUMBER":2}}

This type of change may break your application. That’s why it’s important to verify changes between versions.

Upgrade steps

To find out which QNLP data pack version your project is using, from the Mix dashboard select your project and click the Details tab. The data pack version is provided in the Information area.

The current version is 10.2.x (9.4.x for some deployments). Note that fixes and enhancements were done in both versions, with some additional coverage added in 10.2.x—see the Change log for details.

To upgrade your project to the latest QNLP data pack version in Mix:

  1. Export the TRSX file for the project. For this step and the next, see Export data.
  2. If the project includes a dialog model, also export the JSON file for the dialog model.
  3. Create a new project.
  4. Re-import the TRSX NLU file into the new project.
  5. If applicable, re-import the JSON dialog file into the new project.
  6. Make sure that your client application can handle the latest definition of the predefined entities. See Predefined entities.