Question: Where do you set the chromaDB inside docker and how to correctly configure STATIC_DIR parameter? #2194

Closed
opened 2025-11-11 15:02:08 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @hdnh2006 on GitHub (Sep 25, 2024).

Questions Regarding Open WebUI

Hello!

I hope you're doing well. This is not a bug report but rather a few general questions regarding how Open WebUI manages certain components.

ChromaDB Installation

I've reviewed the Open WebUI documentation and observed that you use ChromaDB by default with specified parameters, as referenced here.

However, I’m a bit unclear about how ChromaDB is specifically installed within the container. While I can see connection settings and configurations (such as certificates) in the chroma.py script, I don’t see any explicit mention of an installation script within the repository itself.

The only related mention I found is the client package in requirements.txt. Could you please clarify how ChromaDB is installed in the container environment? Am I missing something, or are there additional setup steps for installing ChromaDB?

STATIC_DIR Customizations

As per the documentation, I understand that the STATIC_DIR environment variable can be used to personalize assets such as the favicon, which is great! I have a couple of follow-up questions regarding the use of STATIC_DIR:

  1. In the repository, I noticed two different "static" directories: one inside the backend folder, and another at the project’s root. Which of these directories is the documentation referring to for STATIC_DIR customizations? What elements are customizable here?

  2. When the container is run, the static assets seem to be pre-built and bundled using npm. If I were to set a custom directory via the STATIC_DIR environment variable, would Docker incorporate these custom assets before running npm install, or does that need to happen at a different stage? I hope this distinction is clear, but if not, feel free to ask for more clarification.

I want to thank you for building such an amazing tool. I’m genuinely excited to be working with it, and I appreciate all the effort you've put into making this accessible and customizable.

Thanks in advance for your help! 😊

Originally created by @hdnh2006 on GitHub (Sep 25, 2024). # Questions Regarding Open WebUI Hello! I hope you're doing well. This is not a bug report but rather a few general questions regarding how Open WebUI manages certain components. ## ChromaDB Installation I've reviewed the Open WebUI documentation and observed that you use ChromaDB by default with specified parameters, as referenced [here](https://docs.openwebui.com/getting-started/env-configuration#vector_db). However, I’m a bit unclear about how ChromaDB is specifically installed within the container. While I can see connection settings and configurations (such as certificates) in the [chroma.py script](https://github.com/open-webui/open-webui/blob/main/backend/open_webui/apps/rag/vector/dbs/chroma.py), I don’t see any explicit mention of an installation script within the repository itself. The only related mention I found is the client package in [requirements.txt](https://github.com/open-webui/open-webui/blob/main/backend/requirements.txt#L39). Could you please clarify how ChromaDB is installed in the container environment? Am I missing something, or are there additional setup steps for installing ChromaDB? ## STATIC_DIR Customizations As per the documentation, I understand that the `STATIC_DIR` environment variable can be used to personalize assets such as the favicon, which is great! I have a couple of follow-up questions regarding the use of `STATIC_DIR`: 1. In the repository, I noticed two different "static" directories: one inside the [backend](https://github.com/open-webui/open-webui/tree/main/backend/open_webui/static) folder, and another at the project’s [root](https://github.com/open-webui/open-webui/tree/main/static). Which of these directories is the documentation referring to for `STATIC_DIR` customizations? What elements are customizable here? 2. When the container is run, the static assets seem to be pre-built and bundled using `npm`. If I were to set a custom directory via the `STATIC_DIR` environment variable, would Docker incorporate these custom assets **before** running `npm install`, or does that need to happen at a different stage? I hope this distinction is clear, but if not, feel free to ask for more clarification. I want to thank you for building such an amazing tool. I’m genuinely excited to be working with it, and I appreciate all the effort you've put into making this accessible and customizable. Thanks in advance for your help! 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#2194