Skip to content

[Add costomized metrics] how to implement a new metrics so that I can use for collection indexing? #39426

Discussion options

You must be logged in to vote

To add new metrics, i think we need to follow the following stype

https://github.com/zilliztech/knowhere/blob/main/src/common/metric.h

at knowhere, add a special metrics named customize. The customize function need to read a config and load dynamic lib and user need to implement DistanceComputer interface with customize distance(This is performance related)

Then at milvus, add a wrapper of supporting to use customized function is all we need.

@jayxio let me know if this is clear to you

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@jayxio
Comment options

@yhmo
Comment options

yhmo Jan 21, 2025
Collaborator

Comment options

You must be logged in to vote
3 replies
@jayxio
Comment options

@xiaofan-luan
Comment options

@jayxio
Comment options

Answer selected by jayxio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants