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
-
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.