nickna / Neighborly

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

fix: `VectorDatabaseTests.TestUpdate` test failure #70

Closed hangy closed 5 days ago

hangy commented 5 days ago

## 📝 Description

  1. Use optimized _memoryMappedList.GetVector(id); when getting an index from the database (already knows the correct offset after searching the index).
  2. Some what related to https://github.com/nickna/Neighborly/discussions/50#discussioncomment-9783483: Use different way of comparing the vectors after update.

🔗 Related Issues

Fixes #66

💡 Additional Notes

None