nickna / Neighborly

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

fix: Use correct byte length for `OriginalText` #54

Closed hangy closed 2 weeks ago

hangy commented 2 weeks ago

## 📝 Description

Uses the correct text length for the binary representation of the vector. Also adds some test cases for separate scripts.

The code did not work with multi-byte characters, just with ASCII and similar single-byte encoded values.

🔗 Related Issues

None

💡 Additional Notes

This is my bad. I should have used better test cases from the get go.