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

Unable to use the --docker parameter in CLI due to interpolation format error #750

Open jais001 opened 1 month ago

jais001 commented 1 month ago

Hi,

I have recently started using R2R. I have followed the documentation and set up Postgres + pgvector. While trying to start the R2R server using the following docker command:

r2r --config-name=default serve --docker

I am getting the following exception message:

ERROR: Invalid interpolation format for "r2r" option in service "services": "POSTGRES_USER=${POSTGRES_USER:-postgres}"

It works fine when I run with the following code: r2r --config-name=default serve

emrgnt-cmplxty commented 1 month ago

Hi,

Thanks for sharing! Unfortunately, I cannot replicate this from my laptop.

Which environment variables do you have set for POSTGRES_USER? Which os you running on and with which cpu arch? Lastly, which Docker version are you using?

Sorry for the inconvenience - let's figure this one out.

jais001 commented 1 month ago

Hi @emrgnt-cmplxty ,

Please check the following information:

POSTGRES_USER=postgres
POSTGRES_HOST=localhost
POSTGRES_PORT=5432

OS: Ubuntu 20.04.6 CPU Arch: x86_64 Docker Version: 27.1.0

emrgnt-cmplxty commented 1 month ago

Thanks @jais001 - We are going to try to replicate on an ubuntu machine. I believe this is likely the source of some of the other errors you are seeing as well, we will report back.

emrgnt-cmplxty commented 1 month ago

Could you please run docker-compose --version and report back your findings?

jais001 commented 1 month ago

@emrgnt-cmplxty My docker-compose version is 1.25.0