Skip to content

Conversation

@omarchouikha-goreply
Copy link

@omarchouikha-goreply omarchouikha-goreply commented Sep 30, 2025

Problem: We identified unexpected costs originating from the US region in our billing reports for the RAG system deployed exclusively in europe-west3.

Root Cause: Upon investigation, we determined that the Google text-embedding models always default to the us-central1 location, causing cross-regional data processing charges.

Solution: To enforce regional alignment and eliminate unnecessary costs, we have implemented an environment variable. This allows us to explicitly configure the model's location, ensuring all operations remain within the europe-west3 region.

Bonus: We also upgraded the model from 004 to the latest version 005

@andrejmaya-reply
Copy link

@danny-avila is there any updates on this (rather small) improvement? It's a bit critical for usage in EU and regulated environments. I am looking forward to this change gets merged :-)

@andrejmaya-reply
Copy link

@danny-avila do you have an outlook when you will be able to take a look at this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants