A Service to write AI Agent Logic.
-
Clone the repository:
git clone https://github.com/AI-at-Work/Chat-AI-Service cd Chat-AI-Service -
Copy the
.env.sampleto.envand configure the environment variables:cp .env.sample .env
Edit the
.envfile to set your specific configurations and add openai api key. -
Start the service:
make proto && docker compose up -d --build
- Configure the production repository:
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
- Update the packages list from the repository:
sudo apt-get update
- Install the NVIDIA Container Toolkit packages:
sudo apt-get install -y nvidia-container-toolkit
- Configure the container runtime by using the nvidia-ctk command:
sudo nvidia-ctk runtime configure --runtime=docker
- Restart the Docker daemon:
sudo systemctl restart docker
Key configuration options in the .env file:
AI_*: AI Server configurations
Refer to the .env.sample file for a complete list of configuration options.
