RAG_* environment variables are not populated as the configuration document described #102

Closed
opened 2026-02-15 19:16:17 -05:00 by yindo · 7 comments
Owner

Originally created by @davidshen84 on GitHub (Sep 1, 2025).

In https://docs.openwebui.com/getting-started/env-configuration/#rag_openai_api_base_url, the RAG_OPENAI_API_BASE_URL environment variable should default to the value of OPENAI_API_BASE_URL. However, it is not populated in the open-webui pod.

A quick search in the codebase shows that the RAG_* variables are not mentioned anywhere, except in one comment.

I suppose the configuration document is not specifically tailored for Kubernetes deployment, and the Helm chart is not strictly implemented according to that document. But which way should it be?

  • Update Helm chart to comply with the common configuration
  • Add a Helm chart specific configuration guide
Originally created by @davidshen84 on GitHub (Sep 1, 2025). In https://docs.openwebui.com/getting-started/env-configuration/#rag_openai_api_base_url, the `RAG_OPENAI_API_BASE_URL` environment variable should default to the value of `OPENAI_API_BASE_URL`. However, it is not populated in the *open-webui* pod. A quick search in the codebase shows that the `RAG_*` variables are not mentioned anywhere, except in one comment. I suppose the configuration document is not specifically tailored for Kubernetes deployment, and the Helm chart is not strictly implemented according to that document. But which way should it be? - Update Helm chart to comply with the common configuration - Add a Helm chart specific configuration guide
yindo added the bug label 2026-02-15 19:16:17 -05:00
yindo closed this issue 2026-02-15 19:16:17 -05:00
Author
Owner

@westbrook-ai commented on GitHub (Sep 2, 2025):

Hey @davidshen84, are you seeing that the behavior of Open WebUI is incorrect if RAG_OPENAI_API_BASE_URL is not set at the chart level/ on the Open WebUI pod?

For what it's worth, the Helm chart should comply with the common configuration wherever possible.

@westbrook-ai commented on GitHub (Sep 2, 2025): Hey @davidshen84, are you seeing that the behavior of Open WebUI is incorrect if `RAG_OPENAI_API_BASE_URL` is not set at the chart level/ on the Open WebUI pod? For what it's worth, the Helm chart should comply with the common configuration wherever possible.
Author
Owner

@davidshen84 commented on GitHub (Sep 2, 2025):

I inspected the pod env and there's no RAG env variables. In the web UI,
RAG related configuration values are filled with the default values, not
inheriting the OPENAI related values.

On Wed, 3 Sept 2025, 09:45 James W., @.***> wrote:

0xThresh left a comment (open-webui/helm-charts#289)
https://github.com/open-webui/helm-charts/issues/289#issuecomment-3247160665

Hey @davidshen84 https://github.com/davidshen84, are you seeing that
the behavior of Open WebUI is incorrect if RAG_OPENAI_API_BASE_URL is not
set at the chart level/ on the Open WebUI pod?

For what it's worth, the Helm chart should comply with the common
configuration wherever possible.


Reply to this email directly, view it on GitHub
https://github.com/open-webui/helm-charts/issues/289#issuecomment-3247160665,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAQBTI4Z4Z3O5MVSC3ZSBD3QYTZJAVCNFSM6AAAAACFJRMC5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENBXGE3DANRWGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@davidshen84 commented on GitHub (Sep 2, 2025): I inspected the pod env and there's no RAG env variables. In the web UI, RAG related configuration values are filled with the default values, not inheriting the OPENAI related values. On Wed, 3 Sept 2025, 09:45 James W., ***@***.***> wrote: > *0xThresh* left a comment (open-webui/helm-charts#289) > <https://github.com/open-webui/helm-charts/issues/289#issuecomment-3247160665> > > Hey @davidshen84 <https://github.com/davidshen84>, are you seeing that > the behavior of Open WebUI is incorrect if RAG_OPENAI_API_BASE_URL is not > set at the chart level/ on the Open WebUI pod? > > For what it's worth, the Helm chart should comply with the common > configuration wherever possible. > > — > Reply to this email directly, view it on GitHub > <https://github.com/open-webui/helm-charts/issues/289#issuecomment-3247160665>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAAQBTI4Z4Z3O5MVSC3ZSBD3QYTZJAVCNFSM6AAAAACFJRMC5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENBXGE3DANRWGU> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@this-is-tobi commented on GitHub (Nov 2, 2025):

Hey @davidshen84,

Is the OPENAI_API_BASE_URL env variable defined in your container ? Because the RAG_OPENAI_API_BASE_URL should default to this env variable (https://github.com/open-webui/open-webui/blob/main/backend/open_webui/config.py#L2697-L2701)

@this-is-tobi commented on GitHub (Nov 2, 2025): Hey @davidshen84, Is the `OPENAI_API_BASE_URL` env variable defined in your container ? Because the `RAG_OPENAI_API_BASE_URL` should default to this env variable (https://github.com/open-webui/open-webui/blob/main/backend/open_webui/config.py#L2697-L2701)
Author
Owner

@davidshen84 commented on GitHub (Nov 3, 2025):

I don't have an environment to test it now. Maybe it is fixed. When I first tried it, I set OPENAI_API_BASE_URL, but the RAG functions are not working.

I don't mind if closing it.

@davidshen84 commented on GitHub (Nov 3, 2025): I don't have an environment to test it now. Maybe it is fixed. When I first tried it, I set `OPENAI_API_BASE_URL`, but the RAG functions are not working. I don't mind if closing it.
Author
Owner

@this-is-tobi commented on GitHub (Nov 3, 2025):

And did you set RAG_EMBEDDING_ENGINE ? By default the RAG use the local sentence-transformers/all-MiniLM-L6-v2 model to perform embeddings (https://docs.openwebui.com/getting-started/env-configuration/#rag_embedding_engine)

@this-is-tobi commented on GitHub (Nov 3, 2025): And did you set `RAG_EMBEDDING_ENGINE` ? By default the RAG use the local `sentence-transformers/all-MiniLM-L6-v2` model to perform embeddings (https://docs.openwebui.com/getting-started/env-configuration/#rag_embedding_engine)
Author
Owner

@davidshen84 commented on GitHub (Nov 3, 2025):

I set it to openai.

@davidshen84 commented on GitHub (Nov 3, 2025): I set it to `openai`.
Author
Owner

@westbrook-ai commented on GitHub (Nov 3, 2025):

Closing this out for now since it sounds like Open WebUI should handle it in the default case, if anyone has issues in the future please tag me.

@westbrook-ai commented on GitHub (Nov 3, 2025): Closing this out for now since it sounds like Open WebUI should handle it in the default case, if anyone has issues in the future please tag me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/helm-charts#102