SciPhi-AI / R2R

The Elasticsearch for RAG. Build, scale, and deploy state of the art Retrieval-Augmented Generation applications
https://r2r-docs.sciphi.ai/
MIT License
3.25k stars 238 forks source link

Environment Variable OLLAMA_API_BASE Not Taking Effect When Starting R2R Service using Docker #987

Closed lpb1 closed 2 weeks ago

lpb1 commented 2 weeks ago

Description: I already installed latest version of r2r. When using the r2r serve --docker --config-path=my_config.toml command to start the R2R service, I attempted to configure the remote OLLAMA service by setting the environment variable OLLAMA_API_BASE. However, I found that this environment variable did not take effect.

Reproduction Steps: 1.Set the environment variable OLLAMA_API_BASE:

export OLLAMA_API_BASE=http://example.com:11434

2.Start the R2R service:

r2r serve --docker --config-path=my_config.toml

Expected Behavior: The environment variable OLLAMA_API_BASE should take effect when the R2R service starts and configure the remote OLLAMA service.

Actual Behavior: The environment variable OLLAMA_API_BASE does not seem to be read or take effect, resulting in the R2R service being unable to connect correctly to the remote OLLAMA service.

emrgnt-cmplxty commented 2 weeks ago

fixed