Skip to content

Feature: Graph-Aware Retrieval — Integrating Cross-Document Graph into the Query Pipeline #87

@zTgx

Description

@zTgx

Description

The graph module has implemented graph construction and persistence (DocumentGraphBuilder, DocumentGraph), which automatically rebuilds in the background after indexing. However, the retrieval pipeline currently does not utilize any graph data:

  • The retrieval/ module has no references to the graph.
  • The agent/ module has no references to the graph.
  • Engine::get_graph() only exposes an API and is not used for queries.

Desired Behavior

  1. The orchestrator uses graph neighbor information to assist in document selection during the analysis phase.
  2. Worker retrieval results can receive score boosting based on graph connections.
  3. Support a configuration option to enable/disable graph-aware retrieval.

Related Code

  • rust/src/graph/builder.rs — Graph construction logic
  • rust/src/client/engine.rs:1069rebuild_graph()
  • rust/src/agent/orchestrator/analyze.rs — Can integrate graph data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions