Skip to content

Commit

Permalink
Merge pull request #46 from cheungdaven/dev
Browse files Browse the repository at this point in the history
Missing config_file argument
  • Loading branch information
cheungdaven authored Aug 1, 2024
2 parents 85590c2 + c3c81c4 commit 8ae0b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
5 changes: 0 additions & 5 deletions src/agrag/agrag.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,6 @@ def __init__(
self.preset_quality = preset_quality
self.model_ids = model_ids

if config_file:
self._load_config()
elif self.preset_quality:
self._load_preset()

self.config = config_file or self._load_preset()

self.args = Arguments(self.config)
Expand Down
10 changes: 2 additions & 8 deletions src/agrag/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,8 @@ class Arguments:
Attributes:
----------
args : argparse.Namespace
The parsed command-line arguments.
config : dict
The loaded configuration from the specified YAML file.
data_defaults : dict
The default values for the data processing module loaded from a YAML file.
embedding_defaults : dict
The default values for the embedding module loaded from a YAML file.
config_file : str
Path to configuration file
Methods:
-------
Expand Down

0 comments on commit 8ae0b77

Please sign in to comment.