Skip to content

Conversation

joachim-danswer
Copy link
Contributor

@joachim-danswer joachim-danswer commented Jun 23, 2025

Description

Adding Vespa language overwrite to docker files

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@joachim-danswer joachim-danswer requested a review from a team as a code owner June 23, 2025 17:11
Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 8:51pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Added VESPA_LANGUAGE_OVERRIDE configuration to Docker environments for controlling Vespa's linguistic processing behavior in multilingual deployments.

  • Added VESPA_LANGUAGE_OVERRIDE option to deployment/docker_compose/env.prod.template with documentation referencing Vespa's official docs
  • Added corresponding environment variable to API server configuration in deployment/docker_compose/docker-compose.dev.yml for development environments
  • This change enables forcing specific language handling in Vespa across both production and development deployments
  • Configuration follows existing patterns for optional settings by being commented out by default in templates

2 files reviewed, 2 comments
Edit PR Review Bot Settings | Greptile

Comment on lines +65 to +67
# If setting the vespa language is required, set this ('en', 'de', etc.).
# See: https://docs.vespa.ai/en/linguistics.html
#VESPA_LANGUAGE_OVERRIDE=
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Add example values in the comment to make it clearer. E.g.: '#VESPA_LANGUAGE_OVERRIDE=en # Supported values: en, de, es, fr, etc.'

Suggested change
# If setting the vespa language is required, set this ('en', 'de', etc.).
# See: https://docs.vespa.ai/en/linguistics.html
#VESPA_LANGUAGE_OVERRIDE=
# If setting the vespa language is required, set this ('en', 'de', etc.).
# See: https://docs.vespa.ai/en/linguistics.html
#VESPA_LANGUAGE_OVERRIDE=en # Supported values: en, de, es, fr, etc.

Comment on lines +133 to +135
# Vespa Language Forcing
# See: https://docs.vespa.ai/en/linguistics.html
- VESPA_LANGUAGE_OVERRIDE=${VESPA_LANGUAGE_OVERRIDE:-}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: consider adding this env var to the background service too since it also interacts with Vespa for indexing operations

@Weves Weves enabled auto-merge June 23, 2025 21:24
@Weves Weves added this pull request to the merge queue Jun 23, 2025
Merged via the queue into main with commit 3272050 Jun 23, 2025
12 of 15 checks passed
@Weves Weves deleted the env_var_force_vespa_language branch June 23, 2025 22:43
Weves pushed a commit that referenced this pull request Jun 27, 2025
* docker dev and prod template

* more dev files
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* docker dev and prod template

* more dev files
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