You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What's Changed
Maximize compatibility with the standard library error types to allow users to convert OasysDB errors to most commonly used error handling libraries such as anyhow, thiserror, etc.
Add conversion methods to convert metadata to JSON value by serde_json and vice versa. This allows users to store JSON format metadata easily.
Add normalized cosine distance metric to the collection search functionality. Read more about the normalized cosine distance metric here.
Fix the search distance calculation to use the correct distance metric and sort it accordingly based on the collection configuration.
Add vector ID utility methods to the VectorID struct to make it easier to work with the vector ID.
Additional Notes
Add a new benchmark to measure the true search AKA brute-force search performance of the collection. If possible, dealing with a small dataset, it is recommended to use the true search method for better accuracy. The benchmark can be run using the cargo bench command.
Improve the documentation to include more examples and explanations on how to use the library: Comprehensive Guide.