-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Context
graphExpand query-time expansion was removed while graph strategy is being redesigned. We now plan to use Apache AGE on Postgres: https://age.apache.org/
Goal
Reintroduce optional graph-assisted query expansion on top of the current Postgres + pgvector stack, implemented via Apache AGE.
Scope (proposed)
- Keep current vector retrieval path as default and stable.
- Add feature-flagged AGE integration for graph traversal.
- Reintroduce optional query-time expansion behavior (
graphExpandor renamed equivalent). - Ensure graceful fallback to vector-only retrieval when AGE is disabled/unavailable.
Proposed phases
- Foundation
- Add AGE extension support in DB runtime/migrations.
- Add session bootstrap (
LOAD 'age',search_pathhandling) in API data access path.
- Graph storage + traversal
- Define graph schema/mapping for entities and relationships.
- Add traversal query primitives for 1–2 hop expansion from extracted entities.
- API/CLI integration
- Add optional expansion flag to query path.
- Return expansion metadata in response (when enabled).
- Hardening
- Integration tests for vector-only, vector+graph, and fallback paths.
- Performance guardrails and timeout caps for graph traversal.
Acceptance criteria
- AGE and pgvector run in the same Postgres deployment used by raged.
- Query endpoint supports optional graph-assisted expansion behind a feature flag.
- Vector-only retrieval behavior is unchanged when graph expansion is off.
- API/CLI docs are updated with configuration and behavior.
- Integration tests cover success and fallback scenarios.
Notes
- Validate AGE/Postgres version compatibility before implementation.
- Prefer minimal API contract changes; keep existing clients compatible by default.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels