Skip to main content

Watson Assistant Improve Notebooks

Build Status Slack Latest Stable Version CLA assistant

This repository houses Watson Assistant Improve notebooks and the underlying assistant improve toolkit library.

Introduction

To help improving your Watson Assistant after you have deployed it to production, we prepared the following Jupyter notebooks. These notebooks include practical steps for measuring, analyzing, and actively improving your assistant in a continuous manner. Check out IBM Watson Assistant Continuous Improvement Best Practices for more details.

  • Measure notebook contains a set of automated metrics that help you monitor and understand the behavior of your system. The goal is to understand where your assistant is doing well vs where it isn’t, and to focus your improvement effort to one of the problem areas identified. This notebook generates an assessment spreadsheet for you to use to label problematic conversations, and then feed to the Effectiveness notebook.

  • Effectiveness notebook helps you understand the relative performance of each intent and entity as well as the confusion between your intents. This information helps you prioritize your improvement effort. The input to this notebook is an assessment spreadsheet generated from the Measure notebook. Update the marked columns in the spreadsheet with your labels and load it into the Effectiveness notebook for analysis.

  • Logs notebook helps you fetch logs using Watson Assistant API. You can fetch logs with various filters, and save them as a JSON file, or export the utterances in the logs into a CSV file. The JSON file can be loaded into the Measure notebook. The CSV file can be used for intent recommendation service. Alternatively, you can run python scripts fetch_logs and export_csv_for_intent_recommendation to fetch logs and export them to intent recommendation CSV, respectively. Run python get_logs -h and python export_csv_for_intent_recommendation.py -h for usage.

  • Dialog Flow Analysis notebook help you assess and analyze user journeys and issues related to the dialog flow of ineffective (low quality) conversations based on production logs. Check out Dialog Flow Analysis for more details.

  • Dialog Skill Analysis notebook help you analyze characteristics of your data such as the number of training examples for each intent or the terms which seem to be characteristic of a specific intent. Check out Dialog Skill Analysis for more details.

Getting Started

You can either run the notebooks locally or in IBM Watson Studio.

  • Run locally

    1. Install Jupyter Notebook, see Jupyter/IPython Notebook Quick Start Guide for more details.
    2. Download the Jupyter notebooks available in this repository's notebook directory. Note: These notebook files are not designed for Watson Studio environment
    3. Start jupyter server jupyter notebook
    4. Follow the instructions in each of the notebooks. Be sure to add your Watson Assistant credentials if necessary.
  • Run in Watson Studio

    1. Create a Watson Studio account.
      Sign up in Watson Studio, or use an existing account. Lite plan is free to use.

    2. Create a new project and add a Cloud Object Storage (COS) account.
      For more information regarding COS plans, see Pricing.

    3. Copy Measure or Effectiveness notebook from Watson Studio community into your project.

    4. Follow the instructions in each notebook to add project tokens and Watson Assistant credentials if necessary.

Guides

Contributing

See CONTRIBUTING.md for more details on how to contribute

License

This library is licensed under the Apache 2.0 license.

Metadata

Release files for assistant-improve-toolkit 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for assistant-improve-toolkit 1.4.1
File Size Uploaded Provenance Actions
assistant_improve_toolkit-1.4.1.tar.gz 68.4 kB Without provenance Details for assistant_improve_toolkit-1.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for assistant-improve-toolkit 1.4.1
File Interpreter ABI Platform Actions
assistant_improve_toolkit-1.4.1-py3-none-any.whl Python 3 none any Details for assistant_improve_toolkit-1.4.1-py3-none-any.whl

Total release size: 142.8 kB

Release files / assistant_improve_toolkit-1.4.1.tar.gz

Download URL assistant_improve_toolkit-1.4.1.tar.gz
Size 68.4 kB
Tags Source
SHA-256 checksum
How to use checksums
219c481e4a0d43cc5ed5a05b0f508c6788d6fe3093bd4a61fe1461e5bad01404
BLAKE2b-256 checksum
How to use checksums
d5205d1a26195ec2e891f150c9095fcef54e18472f56130e2f898b687643efcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / assistant_improve_toolkit-1.4.1-py3-none-any.whl

Download URL assistant_improve_toolkit-1.4.1-py3-none-any.whl
Size 74.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
987ac685ace243d6e14f3ae1e589ffdb131158443f907b830a725b48feaa941e
BLAKE2b-256 checksum
How to use checksums
775a808b5a0447466dff31488b0a78065e6a7547cdc4d870a5227c2a40e7ec75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for assistant-improve-toolkit 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page