deepset-ai / rasa-haystack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rasa Haystack Demo

This repo is a bare-bones chat bot project using Rasa in combination with Haystack. While Rasa is used for the whole flow of the dialogue and intent management, Haystack is used to answer the long tail of "knowledge queries" that can be answered by searching an answer in a document corpus. This example repo sketches how to use the fallback intent or an dedicated knowledge base intent to offload such queries to haystack.

After initializing a plain rasa project (rasa init) changes were made to

  • domain.yml
  • config.yml
  • data/nlu.yml
  • data/rules.yml
  • actions/actions.py

More details can be found at this page!

Get Started

  • Install Rasa
  • Start the Haystack REST API and a demo DocumentStore via Docker:
git clone https://github.com/deepset-ai/haystack.git
cd haystack
docker-compose pull
docker-compose up

If you don't use Docker, you can also install Haystack and start the Haystack REST API service

  • Train a model in this repository with rasa train
  • Call rasa shell to start interacting with the chatbot (alternatively, you can use Rasa X and interact with the bot via a developer GUI)

Our trained model is included in the models directory.

About


Languages

Language:Python 100.0%