- Natanael Alves
- Leonardo Spilere
The Computer Hardware Chatbot is a specialized assistant designed to help users with questions about computer parts and PC building. It uses the pcpartpicker
library to retrieve data about various computer components and provides relevant information based on user queries. The chatbot can answer general questions about computers and provide specific details about different parts.
- Answers general questions about computer parts and PC building.
- Retrieves data from the
pcpartpicker
library. - Supports a wide range of part categories, including CPUs, GPUs, motherboards, and more.
- Provides a user-friendly chat interface with colored text for better readability.
The chatbot supports the following part categories:
wireless-network-card
case-fan
cpu
cpu-cooler
headphones
motherboard
monitor
internal-hard-drive
external-hard-drive
ups
fan-controller
case
keyboard
mouse
wired-network-card
sound-card
video-card
speakers
optical-drive
power-supply
thermal-paste
memory
-
Clone the repository:
# Using HTTPS git clone https://github.com/osLeonardo/ai-chatbot.git cd ai-chatbot
# Using SSH git clone git@github.com:osLeonardo/ai-chatbot.git cd ai-chatbot
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a Cohere API key:
- Go to the Cohere website and sign up for an account.
- Navigate to the API section and generate a new API key.
-
Edit the
.env
file in the root directory with your Cohere API key:COHERE_KEY="your_cohere_api_key"
-
Run the chatbot:
python main.py
-
Interact with the chatbot by typing your questions about computer parts and PC building. For example:
> You: What are some good CPUs?
-
To exit the chat, type
exit
.
=========================================
Welcome to the Computer Hardware Chatbot!
=========================================
- Type 'exit' to end the chat.
> You: What are some good CPUs?
> Assistant: Here are some CPUs you can consider: [list of CPUs]