Skip to main content

A framework that facilitates creating task-oriented chatbot

Project description

Converse logo

Converse

Converse is a flexible framework for building and deploying task-oriented chatbots.

Table of Contents

  1. Getting Started
  2. Learn more about Converse
  3. How to contribute
  4. Citing Converse

Getting Started

Requirements

  • python >= 3.7

Running the NLU (NER/Intent/Coreference) services

Running the Demo - Quick Start

If you don't plan to edit the package code, we recommend using this method of running Converse because it is easier.

  1. Install Docker.
  2. Create a Python 3.7 virtual environment using Conda and activate it.
  3. Run the following command to install the pip package of Converse:
    pip install -i https://test.pypi.org/pypi/ --extra-index-url https://pypi.org/simple converse-test-command==0.2.16
    
  4. Install svn on your computer. On Mac, run:
    brew install svn
    
  5. Run converse-shell to test if the package is successfully installed. If the command line output contains "Hello, Converse!", then you installed the package successfully.
  6. Run converse-demo to interact with pre-built example bots, and follow the instructions in your terminal. Note that first-time users can leave every required input empty to use the default value. Open the link provided by the script using your favorite browser, then you should see the demo page (pictured below). You can interact with the bot by typing in the chat box on the right and the tree visualization will change based on your task progress. Remember that the example bots are not open-domain chatbots. Please check Template Bots for the details of the template bots before you run the demo. Picture of the demo in the browser Picture of the demo in the browser after chatting with the bot
  7. Run converse-build to configure your own bot. Follow the instructions in the terminal to set up the bot. Note that first-time users can leave every required input empty to use the default value. Open the link provided by the script using your favorite browser, then you should see the configuration page (pictured below). To learn more about how to build your own bot, please refer to guide for building your first bot. Picture of the configuration tool

Running the Demo After Modifying Files in Converse

  1. Clone this repo and cd into the Converse directory
    git clone git@github.com:salesforce/Converse.git
    cd Converse
    
  2. Create a Python 3.7 virtual environment using Conda.
  3. Install dependencies. All the necessary packages are listed in requirements.txt. You can install all the dependencies by running the following command:
    pip install -r requirements.txt
    
  4. Add the Converse folder to your PYTHONPATH.
    export PYTHONPATH=$PYTHONPATH:/your_directory/Converse
    
  5. In one terminal window, run the backend and check the log file converse.log:
    LOGLEVEL=[debug|info|warning|error|critical] python Converse/demo/dial_backend.py
    
    You may want to specify custom config files. Supply --help option to help you out. The default config files are listed in orchestrator.py file.
  6. In a separate terminal window, run the entity backend services:
    python Converse/entity_backend/entity_service_backend.py
    
  7. In a separate terminal window, run the front end and start interacting with the bot!
    python Converse/demo/client.py
    
    You can interact with the bot directly in the command line or in the browser by opening http://localhost:9002/client in your favorite browser. To learn more about how to build your own bot, please refer to guide for building your first bot.

Learn more about Converse

Please refer to the tutorial on how to build your first bot to get started by building your first bot.

To learn more about how to customize Converse for your use case, please refer to our documentation for each component of the system:

How to contribute

Welcome! We are so happy to see you willing to make your contributions to this repository!

You can contribute via pull requests. Please follow these steps:

  1. Create an issue describing the feature you want to add or modify. A maintainer will review your issue.
  2. Discuss the issue with the maintainer in the issue you created.
  3. Write your code, tests and documentation, and format them with black. We provide a run_black.sh script to help you format your code.
  4. Run ./run_unittest.sh. Make sure that no error occurs in the tests.
  5. Create a pull request (PR) describing your changes. Note that your PR should be a reasonable length (<= 500 lines).

Your PR will be reviewed by a maintainer. When you get the approval from the maintainer, you can merge your code into the main branch.

Citing Converse

You can find more details in our paper: https://arxiv.org/abs/2203.12187

If you're using Converse in your research or applications, please cite using this BibTeX:

@article{xie2022converse,
  title={Converse--A Tree-Based Modular Task-Oriented Dialogue System},
  author={Xie, Tian and Yang, Xinyi and Lin, Angela S. and Wu, Feihong and Hashimoto, Kazuma and Qu, Jin and Kang, Young Mo and Yin, Wenpeng and Wang, Huan and Yavuz, Semih and Wu, Gang and Jones, Michael and Socher, Richard and Zhou, Yingbo and Liu, Wenhao and Xiong, Caiming},
  journal={arXiv preprint arXiv:2203.12187},
  year={2022}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

converse-sfr-0.0.2.tar.gz (129.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

converse_sfr-0.0.2-py3-none-any.whl (171.3 kB view details)

Uploaded Python 3

File details

Details for the file converse-sfr-0.0.2.tar.gz.

File metadata

  • Download URL: converse-sfr-0.0.2.tar.gz
  • Upload date:
  • Size: 129.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for converse-sfr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c7b13128b668c5a315f5e8a96c126b4350bd71735cb62c498967a9b30afdaee6
MD5 21040048d170b8a8dfc4cb3384b6ebbd
BLAKE2b-256 ed667e08607e9ad9683fed8c7bc45cf244816e385b6daf0755fa0fb126d279bc

See more details on using hashes here.

File details

Details for the file converse_sfr-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: converse_sfr-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 171.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0

File hashes

Hashes for converse_sfr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f5f6a6599304c0f04dd5b3086d7f829b1699b2e495f2dcc3e22ed09b864a05c1
MD5 b6cb27e9ad5ca0c62fcb4422ded95b2f
BLAKE2b-256 1ab894a608d5fa2a838430cb564c842d2d512c5a50e2e23161a76681086e1327

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page