trustgraph/trustgraph-flow/trustgraph/gateway
cybermaggedon 01cc8dbc64
feat: replace LLM edge scoring with cross-encoder reranker in GraphRAG (#1005)
Replace the three-prompt LLM scoring pipeline (kg-edge-scoring,
kg-edge-reasoning, kg-edge-selection) with a cross-encoder reranker
service backed by FlashRank. The new hop_and_filter() method performs
iterative graph traversal with semantic scoring at each hop, replacing
the previous follow_edges/get_subgraph approach.

- Add reranker service (trustgraph-base client/service, FlashRank processor)
- Add gateway dispatch for reranker via API and WebSocket
- Rewrite GraphRAG pipeline: hop_and_filter() with per-hop cross-encoder scoring
- Remove kg_prompt() and edge_score_limit from prompt client
- Update provenance: add tg:EdgeSelection type, tg:concept, tg:score predicates
- Update CLIs (tg-invoke-graph-rag, tg-show-explain-trace) for new metadata
- Add tg-invoke-reranker CLI tool
- Add tech spec and UX developer guidance
- Update all unit and integration tests
2026-06-30 14:36:37 +01:00
..
config Per-workspace queue routing for workspace-scoped services (#862) 2026-05-04 10:30:03 +01:00
dispatch feat: replace LLM edge scoring with cross-encoder reranker in GraphRAG (#1005) 2026-06-30 14:36:37 +01:00
endpoint fix: route workspace through bulk WebSocket clients and merge query params (#970) 2026-06-02 14:19:15 +01:00
unused Flow API - update gateway (#357) 2025-05-02 21:11:50 +01:00
__init__.py Fixed a problem with the packages, api/__init__.py appeared in both (#196) 2024-12-06 13:05:56 +00:00
__main__.py Fixed a problem with the packages, api/__init__.py appeared in both (#196) 2024-12-06 13:05:56 +00:00
auth.py feat: global usernames and rename workspace to default_workspace (#1001) 2026-06-25 16:34:31 +01:00
capabilities.py feat: global usernames and rename workspace to default_workspace (#1001) 2026-06-25 16:34:31 +01:00
registry.py feat: replace LLM edge scoring with cross-encoder reranker in GraphRAG (#1005) 2026-06-30 14:36:37 +01:00
running.py Fixed a problem with the packages, api/__init__.py appeared in both (#196) 2024-12-06 13:05:56 +00:00
service.py fix(gateway): propagate --timeout flag to per-service dispatchers (#931) 2026-05-18 09:44:37 +01:00