(service) default results_dir and lancedb_uri to the current working …#1998
(service) default results_dir and lancedb_uri to the current working …#1998edknv wants to merge 2 commits intoNVIDIA:mainfrom
Conversation
Greptile SummaryThis PR replaces developer-specific absolute paths (
|
| Filename | Overview |
|---|---|
| nemo_retriever/src/nemo_retriever/service/cli.py | Adds --results-dir and --lancedb-uri CLI options; wired correctly through the overrides dict to load_config. |
| nemo_retriever/src/nemo_retriever/service/config.py | lancedb_uri default changed from absolute container path to relative "lancedb"; comment added explaining CWD-relative semantics. |
| nemo_retriever/src/nemo_retriever/service/retriever-service.yaml | Replaces hard-coded developer home-directory paths with portable relative defaults; adds explanatory comments about Helm override. |
| nemo_retriever/tests/test_service_bundled_config.py | New test file; test_bundled_yaml_uses_cwd_relative_paths can pass trivially when the bundled YAML is absent (falls through to Pydantic defaults which are already relative). |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["retriever service start\n(CLI)"] --> B{Config path\nprovided?}
B -- "--config <path>" --> C[Load explicit YAML]
B -- "None" --> D{./retriever-service.yaml\nexists in CWD?}
D -- Yes --> E[Load local YAML]
D -- No --> F{Bundled package\nYAML exists?}
F -- Yes --> G[Load bundled YAML\ndefaults: relative paths]
F -- No --> H[Pydantic defaults\nall relative paths]
C --> I[Apply CLI overrides]
E --> I
G --> I
H --> I
I --> J{--results-dir?}
J -- set --> K["processing.results_dir\n= CLI value"]
J -- unset --> L["processing.results_dir\n= 'retriever_results'"]
I --> M{--lancedb-uri?}
M -- set --> N["vector_store.lancedb_uri\n= CLI value"]
M -- unset --> O["vector_store.lancedb_uri\n= 'lancedb'"]
K --> P[ServiceConfig]
L --> P
N --> P
O --> P
Reviews (2): Last reviewed commit: "lint" | Re-trigger Greptile
…directory
Description
Checklist