This system utilizes OpenAI and connects to an Elasticsearch cluster for retrieval-based augmentation. Below are instructions on how to configure the config.ini file and set up the Docker image.
-
Edit
config.ini: Inside theconfigurationfolder, edit the file namedconfig.ini.[elasticsearch] host = YOUR_ADDRESS port = YOUR_PORT username = YOUR_ELASTICSEARCH_USERNAME password = YOUR_ELASTICSEARCH_PASSWORD [openai] api_key = YOUR_OPENAI_API_KEY
Replace
YOUR_ELASTICSEARCH_USERNAME,YOUR_ELASTICSEARCH_PASSWORD, andYOUR_OPENAI_API_KEYwith your own Elasticsearch credentials and OpenAI API key respectively.
-
Build Docker Image:
Navigate to the directory containing the
Dockerfileand run the following command:docker build -t devoxx-chatbot .This command will build a Docker image named
devoxx-chatbot. -
Run Docker Container:
Once the image is built, you can run a Docker container using the following command:
docker run -p 8501:8501 devoxx-chatbot
This command will start the Docker container, and your system will be accessible at
http://localhost:8501in your browser.
After setting up the Docker container, you can access the retrieval augmented generation system via your web browser by visiting http://localhost:8501.
Feel free to customize this README further to fit your specific system's setup and requirements.