graphrag icon indicating copy to clipboard operation
graphrag copied to clipboard

Add __str__ methods to Pydantic models to allow for config printouts

Open darthtrevino opened this issue 1 year ago • 2 comments

darthtrevino avatar Apr 04 '24 03:04 darthtrevino

@jgbradley1 you can print out a configuration with the --dry-run CLI option, and it is JSON-structured, not Pydantic focused. Is this issue still relevant?

darthtrevino avatar Apr 05 '24 16:04 darthtrevino

This is still relevant. The --dry-run option is only useful for end users interacting with graphrag through the CLI interface. It still leaves developers that use the API interface of the package with a challenge of being able to easily track, log, and understand what their workflows look like. If __str__ methods were added, the --dry-run CLI option could be cleaned up to leverage these methods as well to print out the workflows.

jgbradley1 avatar Apr 09 '24 20:04 jgbradley1