forked from AI_team/Philosophy-RAG-demo
🎨 Use project root instead of relative path
This commit is contained in:
parent
770f341c1f
commit
a58ef2f365
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user