This is an prototype of using chatbot to do cloth recommendation.
- python -m venv venv
- source venv/bin/activate
- pip install -r requirements.txt
- Put articles.csv in the project folder. (I didn't put the file on git.)
- Create an .env file. In that file, add the following info. (I didn't put the file on git.) OPENAI_API_KEY=** OPENAI_API_TYPE=** OPENAI_API_VERSION=** OPENAI_API_BASE=** EMBEDDING_DEPLOYMENT_NAME =**
- Run embedding.ipynb to generate articles_embedding.csv.
- In the terminal, run 'streamlit run recbot.py'.
- A page will be opened in your browser. If not, open http://localhost:8501/ in your browser.
Testing case:
Question: Could you please suggest my daughter a birthday cloth.
Following question: Her age is 16 and she really like modern fashion.