What
The index_path config setting is a relative path:
index_path: str = "src/knowledge/data/index.json"
This resolves against the current working directory at runtime. If the application is started from any directory other than the project root (e.g., via a systemd service, a Docker WORKDIR mismatch, or a CI script), the index file will not be found.
Why
The knowledge-base directory path in index_builder.py uses Path(__file__)\) (correct), but index_path` does not.
Scope
- Make
index_path relative to the project root or use `Path(file))
Acceptance Criteria
Technical Context
- File:
src/config.py, line 32
What
The
index_pathconfig setting is a relative path:This resolves against the current working directory at runtime. If the application is started from any directory other than the project root (e.g., via a systemd service, a Docker
WORKDIRmismatch, or a CI script), the index file will not be found.Why
The
knowledge-basedirectory path inindex_builder.pyusesPath(__file__)\) (correct), butindex_path` does not.Scope
index_pathrelative to the project root or use `Path(file))Acceptance Criteria
index_pathworks regardless of the working directoryTechnical Context
src/config.py, line 32