fix: Correct spelling of 'synthetic' in changelog and refactor project_root method in Settings class
This commit is contained in:
parent
c101a8f8da
commit
b163b7cddc
|
|
@ -8,10 +8,10 @@ All notable changes to the **Brunix Assistance Engine** will be documented in th
|
|||
|
||||
### Added
|
||||
- IMPLEMENTED:
|
||||
- `scripts/pipelines/flows/translate_mbpp.py`: pipeline to generate synthethic dataset from mbpp dataset.
|
||||
- `scripts/pipelines/flows/translate_mbpp.py`: pipeline to generate synthetic dataset from mbpp dataset.
|
||||
- `scripts/tasks/prompts.py`: module containing prompts for pipelines.
|
||||
- `scripts/tasks/chunk.py`: module containing functions related to chunk management.
|
||||
- `synthethic_datasets`: folder containing generated synthethic datasets.
|
||||
- `synthetic_datasets`: folder containing generated synthetic datasets.
|
||||
- `src/config.py`: environment variables configuration file.
|
||||
|
||||
### Changed
|
||||
|
|
|
|||
|
|
@ -33,13 +33,13 @@ class Settings(BaseSettings):
|
|||
)
|
||||
|
||||
@property
|
||||
def project_root(self) -> Path:
|
||||
def proj_root(self) -> Path:
|
||||
return Path(__file__).resolve().parents[1]
|
||||
|
||||
def _resolve_path(self, path: Optional[str]) -> Optional[Path]:
|
||||
if path is None:
|
||||
return None
|
||||
return self.project_root / path
|
||||
return self.proj_root / path
|
||||
|
||||
@property
|
||||
def data_path(self) -> Optional[Path]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue