graphify
graphify copied to clipboard
Feature: per-project config for query defaults (budget, depth)
Version: graphifyy 0.9.5.
Problem
Two hard-coded defaults that a project can't tune:
- Query budget defaults to 2000 (
__main__.py:2854). On our corpus, 71% of 289 real logged queries needed--budget 4000because the default truncates before the specialized nodes appear. Every agent invocation has to remember the flag. depth=2is hard-coded in the CLI even though_query_graph_textaccepts the parameter.
Proposal
A per-project graphify-out/config.json (or a section in the manifest) with default_budget, default_depth (room for future defaults), read by the CLI. CLI flags still override.
Fixed in 0.9.102 (published to PyPI) via #4760. graphify query reads query_budget/query_depth from .graphifyrc (explicit CLI flags still win), and a --depth flag was added.