From 814a9569b0499099609c54d07b4acafb15a259ac Mon Sep 17 00:00:00 2001 From: Jeisson Date: Mon, 13 Jul 2026 11:09:42 -0500 Subject: [PATCH 1/3] feat(query): add relevance-aware graph retrieval --- README.md | 14 + graphify/__main__.py | 3 + graphify/cli.py | 106 ++-- graphify/security.py | 15 +- graphify/serve.py | 982 ++++++++++++++++++++++++++++++--- tests/test_cli_export.py | 10 +- tests/test_explain_cli.py | 17 + tests/test_path_cli.py | 16 + tests/test_search_relevance.py | 880 +++++++++++++++++++++++++++++ tests/test_security.py | 27 + tests/test_serve.py | 47 ++ tests/test_serve_http.py | 165 +++++- uv.lock | 212 +++---- 13 files changed, 2257 insertions(+), 237 deletions(-) create mode 100644 tests/test_search_relevance.py diff --git a/README.md b/README.md index 0a883e75b..2e89b26f3 100644 --- a/README.md +++ b/README.md @@ -634,9 +634,23 @@ graphify-out/ /graphify query "what connects attention to the optimizer?" /graphify query "..." --dfs --budget 1500 +/graphify query "authentication community:Backend" +/graphify query "Q: stale cache include:memory" +/graphify query "callers god:RequestRouter" /graphify path "DigestAuth" "Response" +/graphify path "src/auth.py::validate()" "src/http.py::respond()" # disambiguate duplicate labels /graphify explain "SwinTransformer" +# Query retrieval is staged across code, docs, tests, and likely communities. +# Saved Q: work-memory nodes are fallback-only unless include:memory is present. +# community: and god: