-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from rithikJha/main
agent: RASA customer support bot
- Loading branch information
Showing
4 changed files
with
1,661 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RASA_Customer-support-bot/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> | ||
|
||
# Advanced Customer Support Chatbot | ||
|
||
Welcome to the **Advanced Customer Support Chatbot** project! This chatbot leverages the powerful combination of **Rasa**, **LanceDB**, and **OpenAI’s LLMs** to deliver intelligent, context-aware, and efficient customer support solutions. | ||
|
||
## Overview | ||
![image](../../assets/RASA_LanceDB.jpg) | ||
|
||
**Rasa** is an open-source framework for building sophisticated conversational agents and chatbots. It provides essential tools for natural language understanding (NLU) and dialogue management, enabling developers to create intelligent and contextually aware chatbots tailored to specific business needs. Rasa’s flexibility allows seamless integration with various APIs, databases, and machine learning models, making it an ideal choice for developing robust customer support systems. | ||
|
||
## Installation | ||
|
||
For detailed installation instructions, please refer to our comprehensive guide available in the Google Colaboratory notebook: | ||
|
||
<a href="https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RASA_Customer-support-bot/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> | ||
|
||
|
||
This guide will walk you through setting up each component of the RASA Customer Support bot, ensuring a seamless integration process. | ||
|
||
## Building the Customer Support Bot | ||
|
||
### Initialize the Rasa Project | ||
|
||
```python | ||
rasa init --no-prompt | ||
``` | ||
This command sets up the basic directory structure with sample data. | ||
|
||
### Utilizing LanceDB for Storage of customer support data | ||
|
||
- LanceDB serves as the knowledge base for the chatbot, storing FAQs and support information. This setup ensures that the knowledge base is populated with relevant support information, allowing the chatbot to retrieve accurate responses based on user queries. | ||
|
||
### Integrating RASA, LanceDB and Openai api in *actions.py* | ||
|
||
- **Implement Custom Actions**: Custom actions enable the chatbot to perform specific tasks, such as querying LanceDB and generating responses using OpenAI’s LLM. The actions.py file is the central location for defining these actions. | ||
|
||
## Implementation Steps | ||
|
||
The RASA customer support bot involves several key steps: | ||
|
||
1. **Define knowledge_data and store it in LanceDB** | ||
2. **Configure Rasa Files** | ||
3. **Implement Custom Actions (actions.py)** | ||
4. **Train the Model (rasa train)** | ||
5. **Run Servers** | ||
6. **Deploy and Test** | ||
|
||
## Resources | ||
|
||
- **Google Colab**: For hands-on examples and detailed code snippets for implementing the RASA Chatbot with LanceDB and OpenAI api, visit our [Google Colab Notebook](https://colab.research.google.com/github/lancedb/vectordb-recipes/blob/main/examples/RASA_Customer-support-bot/main.ipynb). | ||
|
||
- **Blog Post**: For a more in-depth exploration of the concepts and methodologies discussed in this project, please visit our [Blog Post](https://blog.lancedb.com/customer-support-bot-rasa-x-lancedb/). | ||
|
Oops, something went wrong.