Skip to content

Implement HNSW vector index #6

Closed

Description

@ajianaz

Summary

Integrate HNSW (hnsw crate) for fast approximate nearest neighbor search on embedding vectors.

Acceptance Criteria

  • HNSW index struct with configurable M and ef_construction
  • insert(uuid, Vec) adds vector to index
  • search(query_vec, top_k) returns list of (uuid, score) sorted by similarity
  • persist() saves index to disk (~/.uteke/hnsw.bin)
  • load() restores index from disk
  • Handles 10K+ vectors without performance degradation
  • Benchmark: search <5ms for 10K vectors, <20ms for 100K
  • Unit tests with synthetic vectors

Deliverable

Working HNSW index with disk persistence and benchmarks.
Estimated: 10h

Activity

  1. added this to the Phase 1: Core Engine milestone on May 29, 2026
  2. added
    scope:core
    type:feature
    on May 29, 2026
  3. ajianaz commented on May 29, 2026

    @ajianaz
    CollaboratorAuthor

    Implemented in develop branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:coretype:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions