mirror of
https://github.com/microsoft/graphrag.git
synced 2025-11-10 14:54:44 +00:00
* Migrate towards using static output directories
- Fixes load_config eagering resolving directories.
Directories are only resolved when the output
directories are local.
- Add support for `--output` and `--reporting` flags
for index CLI. To achieve previous output structure
`index --output run1/artifacts --reports run1/reports`.
- Use static output directories when initializing
a new project.
- Maintains backward compatibility for those using
timestamp outputs locally.
* fix smoke tests
* update query cli to work with static directories
* remove eager path resolution from load_config. Support CLI overrides that can be resolved.
* add docs and output logs/artifacts to same directory
* use match statement
* switch back to if statement
---------
Co-authored-by: Alonso Guevara <alonsog@microsoft.com>
1.1 KiB
1.1 KiB
Config Breaking Changes
Deprecate timestamp paths
Change
- Remove support for timestamp paths, those using
${timestamp}directory nesting. - Use the same directory for storage output and reporting output.
Migration
- Ensure output directories no longer use
${timestamp}directory nesting.
Using Environment Variables
- Ensure
GRAPHRAG_STORAGE_BASE_DIRis set to a static directory, e.g.,outputinstead ofoutput/${timestamp}/artifacts. - Ensure
GRAPHRAG_REPORTING_BASE_DIRis set to a static directory, e.g.,outputinstead ofoutput/${timestamp}/reports
Full docs on using environment variables for configuration.
Using Configuration File
# rest of settings.yaml file
# ...
storage:
type: file
base_dir: "output" # changed from "output/${timestamp}/artifacts"
reporting:
type: file
base_dir: "output" # changed from "output/${timestamp}/reports"