OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
Merge branch 'main' into philnash/tui-extras
Phil Nash284fb61ee272
diff --cc src/tui/screens/config.pyindex eaabc950b,e3d58d773..378974fdf--- a/src/tui/screens/config.py+++ b/src/tui/screens/config.py@@@ -214,7 -329,8 +304,7 @@@ class ConfigScreen(Screen)yield Static(" ")# Langflow Admin Username - conditionally displayed based on password- yield Label("Langflow Admin Username *", id="langflow-username-label")- current_password = getattr(self.env_manager.config, "langflow_superuser_password", "")+ yield Label("Admin Username *", id="langflow-username-label")current_value = getattr(self.env_manager.config, "langflow_superuser", "")input_widget = Input(placeholder="admin", value=current_value, id="input-langflow_superuser"@@@ -624,18 -697,59 +672,6 @@@self.inputs["webhook_base_url"] = input_widgetyield Static(" ")- # Langflow Public URL- yield Label("Langflow Public URL")- current_value = getattr(self.env_manager.config, "langflow_public_url", "")- def _create_field(- self,- field_name: str,- display_name: str,- placeholder: str,- can_generate: bool,- required: bool = False,- ) -> ComposeResult:- """Create a single form field."""- # Create label- label_text = f"{display_name}"- if required:- label_text += " *"-- yield Label(label_text)-- # Get current value- current_value = getattr(self.env_manager.config, field_name, "")-- # Create input with appropriate validator- if field_name == "openai_api_key":-- input_widget = Input(- placeholder="http://localhost:7860",- placeholder=placeholder,-- value=current_value,- id="input-langflow_public_url",- password=True,- validators=[OpenAIKeyValidator()],- id=f"input-{field_name}",-- )- yield input_widget- self.inputs["langflow_public_url"] = input_widget- yield Static(" ")- elif field_name == "openrag_documents_paths":- input_widget = Input(- placeholder=placeholder,- value=current_value,- validators=[DocumentsPathValidator()],- id=f"input-{field_name}",- )- elif "password" in field_name or "secret" in field_name:- input_widget = Input(- placeholder=placeholder,- value=current_value,- password=True,- id=f"input-{field_name}",- )- else:- input_widget = Input(- placeholder=placeholder, value=current_value, id=f"input-{field_name}"- )-- yield input_widget- self.inputs[field_name] = input_widget-- # Add spacing- yield Static(" ")--def on_mount(self) -> None:"""Initialize the screen when mounted."""# Set initial visibility of username field based on password