This addresses the setup process between only Open-WebUI and OpenSearch.
This does not get into the details regarding Ollama, OpenAI, or their models.
Steps
Docker pull the images for OpenSearch and Open-WebUI
Setup a docker network as these services need to be on the same network to interact with each other correctly. For more info, refer to Creating a docker network
Ensure that both OpenSearch and Open-WebUI are running within the same docker network by specifying the same in your docker run command
Short note
While performing the setup process, it is recommended to use OpenSearch with SSL enabled as some functionalities will not work on HTTP, but rather on HTTPS, even if not explicitly mentioned.