Skip to content

index_path is CWD-dependent relative path #8

Description

@DeFiVC

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

  • index_path works regardless of the working directory

Technical Context

  • File: src/config.py, line 32

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions