Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix(tui): validates that the opensearch data directory is writable

Phil Nashe99405958932
diff --git a/src/tui/screens/config.py b/src/tui/screens/config.py
index 91f11172e..b8084158d 100644
--- a/src/tui/screens/config.py
+++ b/src/tui/screens/config.py
@@ -603,6 +603,8 @@ class ConfigScreen(Screen):
input_widget = Input(
placeholder="~/.openrag/data/opensearch-data",
value=current_value,
+ validators=[DocumentsPathValidator()],
+ validate_on=["submitted"],
id="input-opensearch_data_path",
)
yield input_widget