Skip to content

Retrieval + Ranking

VaultCrux retrieval is hybrid:

  • Vector similarity from pgvector adapter
  • Lexical relevance from Postgres full-text (ts_rank)
  • Recency decay score

Final score uses weighted fusion:

  • vector: 0.58
  • lexical: 0.32
  • recency: 0.10

Lane controls:

  • light
  • verified
  • audit

Lane configs are defined in VaultCrux/packages/core/src/laneConfig.ts.

Vector backend controls:

  • FEATURE_QDRANT_READ=true switches retrieval vector reads to Qdrant.
  • FEATURE_VECTOR_DUAL_WRITE=true writes vectors to pgvector and Qdrant in parallel.

Copyright 2026 CueCrux