You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This cluster has no dependency on the rest of QueryMixin (search, learned knowledge) and could be a GroundingMixin in api/app/lib/age_client/grounding.py.
Also Includes
Warm cache optimization (review finding Add Librarian Tool Set to MCP Server #7): Skip pool connection when all concepts are cache hits. Currently acquires a connection just to read graph generation even on 100% warm.
Docstrings: Document the two-tier cache invalidation model on key methods:
Context
PR #276 code review (finding #6) noted
query.pygrew to 1126 lines. The grounding and caching code forms a natural cluster:_get_polarity_axis()— tier-1 polarity cache_get_graph_generation()— generation reading with SAVEPOINTcalculate_grounding_strength_semantic()— per-concept groundingcalculate_grounding_strength_batch()— batch grounding with chunking_polarity_cache,_grounding_cache, locks)_parse_embedding(),_parse_confidence()helpersThis cluster has no dependency on the rest of QueryMixin (search, learned knowledge) and could be a
GroundingMixininapi/app/lib/age_client/grounding.py.Also Includes
calculate_grounding_strength_semantic()— polarity axis caching, vocab generation checkGraphFacade._execute_sql()— pinned connection, generation-based ensure_freshgraph_facade.pymodule docstring — full pipeline: topology (sub-ms) → cached hydrationReferences
.claude/todo-adr-201-graph-accel.md