This project is a chatbot designed to assist users with machine parts on the PartSelect e-commerce website. It integrates a FAISS vector database for relevance checking, Puppeteer for fetching part details, and the DeepSeek API for generating natural responses.
git clone https://github.com/Ding-jinyu/Intsalily-CaseStudy.git-
Navigate to the
backenddirectory:cd backend -
Create a
.envfile:touch .env -
Add the following keys to the
.envfile:DEEPSEEK_API_KEY=your_deepseek_api_key_here OPENAI_API_KEY=your_openai_api_key_hereReplace
your_deepseek_api_key_hereyour_openai_api_key_herewith your actual API key.
-
Navigate to the
backenddirectory:cd backend -
Run the FAISS microservice:
python faiss_microservice.pyThis will start the FAISS server on port
5002.
-
In the
backenddirectory, start the backend server:node server.jsThis will start the backend server on port
5001.
-
Navigate to the
frontenddirectory:cd ../frontend -
Start the frontend development server:
npm startThis will start the frontend on port
3000. Open your browser and navigate tohttp://localhost:3000to view the chatbot.
Copy
partselect-chatbot/
├── backend/
│ ├── server.js # Backend server (Node.js/Express)
│ ├── faiss_microservice.py # FAISS vector database server
│ ├── .env # Environment variables for API keys
│ └── ... # Other backend files
├── frontend/
│ ├── public/ # Static assets and HTML template
│ ├── src/ # React components and styles
│ └── ... # Other frontend files
└── README.md # Project documentation