This application was developed as part of the Ödeal GPT Hackathon. It's a generative AI-based chatbot designed to offer customers special campaigns and promotions. You send your message by choosing the member business ID or general category. A customized response is then returned.
The main technologies utilized:
- Python Flask - Python version: 3.11
- Bootstrap - Bootstrap version: 5.1
- Javascript - Javascript version: Jquery 3.6
Ensure that your Python version is set to 3.11
:
python --version
- Setting up Virtualenv:
pip install virtualenv
- Creating a Virtual Environment:
virtualenv venv
- Activating the Virtual Environment:
source venv/bin/activate
- Installing the necessary libraries:
pip install -r requirements.txt
Set up your .env file:
cd <project-directory>
Add environment variables to the touch .env file.
- Then, add the following environment variables into the .env file:
API_KEY=<apikey>
REST_ENDPOINT=<endpoint>
SECRET_KEY=<asıri-gizli-bisi>
DATABASE_URL=postgresql://postgres:postgres@localhost/postgres
# Azure Cosmos DB
COSMOS_DATABASE=db
COSMOS_CONTAINER=container
COSMOS_ENDPOINT=endpoint
COSMOS_KEY=key
# Azure Cognitive Search
CS_API_BASE=cognitive-search.search.windows.net
CS_API_KEY=key
OPENAI_API_KEY=key
AZURE_API_BASE=azure
- Building the Docker Image:
docker build -t promopilot:latest .
- Launching the Docker Container:
docker run -p 5001:5001 promopilot:latest