BookChatBot is a command line-based chatbot project designed to provide user-friendly responses related to books. It utilizes the AI21 language model to generate responses based on user inquiries and predefined document content.
- Book Recommendations: Receive concise and engaging book recommendations across various genres.
- Book Details: Obtain key information about specific books, including authors, genres, and brief summaries.
- Summarization Requests: Request and receive insightful summaries or overviews of book-related content.
- User Preferences: Tailor responses based on known user preferences from previous interactions.
- Interactive Queries: Encourage users to interact further by asking open-ended questions for personalized recommendations.
Prerequisites Obtain an API key for the AI21 service and replace the API_KEY variable in the chat.py file.
Install the required dependencies by running:
-
Obtain an API key for the AI21 service and replace the
API_KEY
variable in thechat.py
file. -
Install the required dependencies by running:
pip install -r requirements.txt
- Open a terminal window.
- Navigate to the project directory.
- Run the chatbot using the following command:
python chat.py
- Follow the prompts to interact with the BookChatBot.
This project is for testing purposes only, and the prompts are not structured optimally. You may encounter unusual responses during testing.
Feel free to use your AI21 API key. Install the required dependencies by running pip install -r requirements.txt
and run the chatbot on your computer.