nickna / Neighborly

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

feat: Refactor metrics to abstraction #61

Closed hangy closed 1 week ago

hangy commented 1 week ago

## 📝 Description

Refators each distance metric to it's own class, so that it can be tested separately.

🔗 Related Issues

Contributes to #19 by enhancing test coverage for metrics

💡 Additional Notes

In a future PR, an instance implementing IDistanceCalculator could be passed to VectorDatabase to enable #21