v0.5.1
What's Changed
We add a new method Collection.filter to filter the vector records based on the metadata. This method returns a HashMap of the filtered vector records and their corresponding vector IDs. This implementation performs a linear search through the collection and thus might be slow for large datasets.
This implementation includes support for the following metadata to filter:
String: Stored value must include the filter string.Float: Stored value must be equal to the filter float.Integer: Stored value must be equal to the filter integer.Object: Stored value must match all the key-value pairs in the filter object.
We currently don't support filtering based on the array type metadata because I am not sure of the best way to implement it. If you have any suggestions, please let me know.