Converse is a flexible framework for building and deploying task-oriented chatbots.
If you don't plan to edit the package code, we recommend using this method of running Converse because it is easier.
pip install converse-sfr==0.0.2
svn
on your computer. On Mac, run:
brew install svn
If you are using Linux, check https://subversion.apache.org/packages.html to install subversion
. For example, on Ubuntu, run:
apt-get install subversion
apt-get install libapache2-mod-svn
converse-shell
to test if the package is successfully installed. If the command line output contains "Hello, Converse!"
, then you installed the package successfully.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. 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. You can start the NLU services by
docker run --name myintent -p 9001:9001 converseallresearch/intent:0.1
docker run --name myner -p 50051:50051 converseallresearch/ner:0.1
cd
into the Converse
directory
git clone git@github.com:salesforce/Converse.git
cd Converse
requirements.txt
. You can install all the dependencies by running the following command:
pip install -r requirements.txt
Converse
folder to your PYTHONPATH
.
export PYTHONPATH=$PYTHONPATH:/your_directory/Converse
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.python Converse/entity_backend/entity_service_backend.py
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.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:
Chatbot systems can be capable of producing unethical conversations. One example is Microsoft’s Tay which learned and replicated offensive language within hours of interacting with users on Twitter. However, because Converse does not contain a model-based NLG model, this capability is mitigated in our system. A bot builder could still provide biased, racist, or otherwise offensive Task Tree, training samples, or FAQs resulting in inappropriate responses, but Converse does not have the ability to learn offensive or racist language from the end-users. Likewise, Converse does not have the ability to learn and distribute PII, keeping a user’s information private. As with other chatbot systems, there is a potential for dialogue failure. To minimizes the risk of user frustration and attrition, bot builders can provide contingency plans for users such as links to a help page, or transference to a human operator.
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:
black
. We provide a run_black.sh
script to help you format your code../run_unittest.sh
. Make sure that no error occurs in the tests.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.
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:
@misc{https://doi.org/10.48550/arxiv.2203.12187,
doi = {10.48550/ARXIV.2203.12187},
url = {https://arxiv.org/abs/2203.12187},
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},
keywords = {Computation and Language (cs.CL), Artificial Intelligence (cs.AI), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Converse: A Tree-Based Modular Task-Oriented Dialogue System},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}