To run the DIAL application locally, please follow the instructions below.
-
Clone the repository
git clone
-
Install dependencies
poetry install --no-root --directory=app
-
Create
.env.chat
fileDIAL_API_KEY='dial_api_key' # should be the same as in the config.json NEXTAUTH_SECRET='secret' DEFAULT_MODEL=gpt-35-turbo
-
Create
.env.app
file with the actual values according to this documentation -
Create
.env.core
file if you want to use modelsAZURE_OPENAI_ENDPOINT='AZURE_OPENAI_ENDPOINT' AZURE_OPENAI_API_KEY='AZURE_OPENAI_API_KEY' AZURE_DEPLOYMENT_OPENAI_35=gpt-35-turbo-16k AZURE_DEPLOYMENT_OPENAI_4=gpt-4o AZURE_DEPLOYMENT_EMBEDDING=text-embedding-ada-002 AZURE_OPENAI_API_VERSION=2024-02-01
Important: These variables are used in
/dial/config/config-template.json
. If you want to use other variables, update the/tools/update-dial-config.sh
script accordingly.
- Run the application
docker-compose up
-
Start Colima
colima start --arch x86_64 --memory 8 --cpu 4
-
Run
init.sh
script./init.sh
-
Run the application
docker-compose -f docker-compose-colima.yml up
-
Wait for the application to start (This may take some time)
dial-app-1 | INFO: Started server process [1] dial-app-1 | INFO: Waiting for application startup. dial-app-1 | INFO: Application startup complete. dial-app-1 | INFO: Uvicorn running on http://0.0.0.0:5002 (Press CTRL+C to quit)
-
Open the browser and go to
http://localhost:3000/
- Open the browser and go to
http://localhost:3000/
- Select the application to use and start the conversation.
- To customize the response, find the relevant code in
app/application/dial_application.py
and update it according to your needs.