Skip to content

refactor: Integrate LanceDB for Fast Nearest-Neighbor Vector Storage #32

Description

@scheuclu

Description

Replace in-memory array search loops with a local, embedded vector database (LanceDB) to enable sub-millisecond querying as our sentence and contextual databases grow.

Implementation Checklist

  • Database Setup:
    • Install and initialize lancedb in the Python pipeline.
    • Load precomputed vectors (multilingual and sentence bases) directly into local LanceDB tables.
  • Query Refactor:
    • Rewrite query endpoints to execute vector search directly using LanceDB indices instead of raw matrix dot products.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions