Skip to content

Epic 5 - Query Engine Improvements #10

@rmax

Description

@rmax

Parent

Goal

Turn the current search service into a production-like query pipeline.

Detailed tasks

  • 5.1 Query pipeline abstraction
    • Implement modular pipeline stages for:
      • query embedding
      • centroid routing
      • shard loading
      • ANN candidate search
      • merge
      • optional rerank
  • 5.2 Parallel shard search
    • Execute shard searches concurrently.
    • Use the project async runtime.
  • 5.3 Result merge logic
    • Combine shard-local results.
    • Maintain a global top-k heap.
  • 5.4 Distance metrics
    • Support:
      • cosine
      • dot product
      • euclidean
  • 5.5 Query configuration
    • Expose configurable parameters:
      • top_k
      • candidate_shards
      • rerank_limit
      • distance_metric

Definition of done

  • Query execution is broken into explicit pipeline stages.
  • Parallel shard search improves latency.
  • Result merging and distance metrics are configurable and testable.

Child issue breakdown

Dependency summary

Dependency graph

    #59
  /   |   \
#60  #61  #62
  \   |   /
    #63

Metadata

Metadata

Assignees

Labels

epicTop-level epic issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions