Follow these steps to set up your environment, preprocess the data, create all necessary indexes, and launch the Streamlit UI:
-
Clone the repository and set up the Python environment:
git clone git@github.com:forbug/adsp-genai-final-bfgn.git cd adsp-genai-final-bfgn poetry config virtualenvs.in-project true poetry env use 3.11.12 source .venv/bin/activate poetry install
-
Environment Variables
Copy
.env.exampleto.envand fill in any required secrets or configuration values. -
Preprocess the product data:
python scripts/preprocess_product_data.py
-
Create all Chroma indexes:
- Multimodal index:
python scripts/create_multimodal_index.py
- Text-only index:
python scripts/create_text_only_index.py
- Image-only index:
python scripts/create_image_only_index.py
- Multimodal index:
-
Run the Streamlit UI:
streamlit run ui/app.py
You can now interact with the Amazon Product Chatbot in your browser.
- Add your SSH keys to your GitHub account.
- Follow the instructions here.
- Configure your git username and email:
git config user.name "<your-username>" git config user.email "<your-github-email>"
- Clone the repository:
git clone git@github.com:forbug/adsp-genai-final-bfgn.git