nickna / Neighborly

An open-source vector database
MIT License
9 stars 2 forks source link

Improve Distance Calculation Methods #5

Open nickna opened 1 month ago

nickna commented 1 month ago

Improve Distance Calculation Methods

Description:

Optimize the distance calculation methods used in Neighborly to enhance the efficiency of search algorithms, especially for high-dimensional data.

2Distance Calculation: In the Distance method of Vector, it's calculating the Euclidean distance between two vectors. This involves a square root operation, which is computationally expensive.

Tasks:

Resources:

Impact:

Optimized distance calculations will improve the performance of search algorithms, making Neighborly faster and more efficient.

How to Contribute:

  1. Fork the repository and create a new branch for your changes.
  2. Implement and test the optimized distance calculation methods.
  3. Ensure all new and existing tests pass.
  4. Submit a pull request with a detailed description of the changes and performance improvements observed.