From a58ef2f365c59c06e06e24dabe792a1480a6138f Mon Sep 17 00:00:00 2001 From: Ruben Lucas Date: Thu, 17 Apr 2025 08:32:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Use=20project=20root=20instead?= =?UTF-8?q?=20of=20relative=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- generic_rag/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generic_rag/app.py b/generic_rag/app.py index d17b211..d682d1a 100644 --- a/generic_rag/app.py +++ b/generic_rag/app.py @@ -24,7 +24,8 @@ system_prompt = ( "If you don't know the answer, say that you don't know." ) -CONFIG_FILE_PATH = Path("config.yaml") +PROJECT_ROOT = Path(__file__).resolve().parent.parent +CONFIG_FILE_PATH = PROJECT_ROOT / "config.yaml" try: settings: AppSettings = load_settings(CONFIG_FILE_PATH)