Skip to content

Add advanced reranking pipeline: RRF, MMR, graph-distance #52

@rohitg00

Description

@rohitg00

Problem

Hybrid search uses a fixed weighted sum of BM25 and vector scores. There is no diversity-aware reranking or graph-based relevance boosting.

Proposed Solution

  1. Reciprocal Rank Fusion (RRF): Combine BM25 and vector scores using `1/(k + rank)` formula instead of simple weighted sum
  2. Maximal Marginal Relevance (MMR): Add diversity penalty to avoid returning near-duplicate results
  3. Graph-distance reranking: For queries that match graph nodes, boost results that are closer in the knowledge graph

Impact

Better search relevance, especially for ambiguous queries. Reduces redundancy in search results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthighHigh priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions