fix: parametrize opensearch and docling url on langflow flows #853
+36
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request improves the configuration and environment variable management for OpenSearch and Docling services across Docker, Helm, and flow definitions. The main focus is to make service URLs and credentials more flexible and environment-driven, enhancing deployment portability and maintainability. It also updates the TUI diagnostics to use these environment variables dynamically.
Configuration and Environment Variable Improvements:
OPENSEARCH_HOST,OPENSEARCH_PORT,OPENSEARCH_URL, andDOCLING_SERVE_URLas environment variables in bothdocker-compose.ymland Helm templates, allowing for dynamic configuration of service endpoints. [1] [2]docker-compose.ymlandhelm/openrag/values.yamlto includeOPENSEARCH_URLandDOCLING_SERVE_URL. [1] [2]Flow Definitions:
opensearch_urlandapi_urlin all relevant flow JSON files to reference the new environment variables (OPENSEARCH_URL,DOCLING_SERVE_URL) instead of hardcoded URLs. Also set these fields to load from the database. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Diagnostics and Tooling:
src/tui/screens/diagnostics.py) to construct the OpenSearch URL from environment variables (OPENSEARCH_HOST,OPENSEARCH_PORT) rather than using hardcoded values, ensuring tests and checks run against the correct endpoint in any environment. [1] [2] [3] [4] [5]Closes #807