Chatbot with RAG + Memory - Cohere AI, Streamlit, Langchain, Qdrant
Check blog to know more about the project
This project is a chatbot application built using Cohere AI. The chatbot assists users in making hotel bookings by providing information and answering queries related to hotel reservations. Hotel booking bot for Sheraton hotel. Made with cohere AI
![Screenshot 2023-09-24 115029](https://private-user-images.githubusercontent.com/91843271/270161092-31cb54e7-9db1-4251-a93b-693726e73e48.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ0MTM0NDAsIm5iZiI6MTcyNDQxMzE0MCwicGF0aCI6Ii85MTg0MzI3MS8yNzAxNjEwOTItMzFjYjU0ZTctOWRiMS00MjUxLWE5M2ItNjkzNzI2ZTczZTQ4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODIzVDExMzkwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFmYzI3YTcxMDk1ZWU2ZWVmZTg5YmJmYmE3MTViOWY3YjY3ZTRiNDJlZDA4Y2VjYmUyYWE1NDMwOGMzZGIyMGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.o9CkbfyoJ7m-XESBxRsK1xMyTWiuLRrVKqYUDFAO-g8)
-
Chat Interface: Users can interact with the chatbot through a user-friendly chat interface.
-
Hotel Information: The chatbot can provide details about available hotels, room types, and amenities.
-
Booking Assistance: Users can inquire about room availability, rates, and make reservations through the chatbot.
-
DISCLAIMER:
-
- We are using a short knowledge base and an trail api key for cohere api. Therefore the responses may vary
The chatbot is deployed on Streamlit Cloud and can be accessed at the following URL: Chatbot App
Before running this project locally, ensure that you have the following installed:
- Python 3.10.5
- Streamlit
- Other necessary Python libraries (specified in
requirements.txt
)
For clear instruction refer to the blog
-
Clone this repository to your local machine:
git clone https://github.com/4N1Z/hotel-booking-bot cd hotel-booking-bot
-
Install the required Python packages:
pip install -r requirements.txt
-
Add your Cohere API key and Qdrant API_key in secrets.toml
COHERE_API_KEY = "<add_your_api_key>" QDRANT_HOST = "<QDRANT_URL>" QDRANT_API_KEY = "QDRANT_API_KEY"
-
Run the database file first
python run dbCheck.py
-
Run the Streamlit app:
streamlit run app.py
-
Access the chatbot in your web browser at
http://localhost:8501
.
-
Start a conversation with the chatbot by typing your questions or commands into the chat input field.
-
The chatbot will respond with relevant information and assistance related to hotel bookings.
Contributions are welcome! If you have any ideas, bug fixes, or improvements to the chatbot, please feel free to submit a pull request.
This project is licensed under the MIT License.
- Special thanks to the Langchain, Qdrant, Cohere and Streamlit team for providing a user-friendly framework for building web applications with Python.