Open Himasnhu-AT opened 2 months ago
You should build a mapping between embedding and text, so you can find the text after retrieval the top-k embedding. You can refer to https://github.com/FlagOpen/FlagEmbedding/blob/master/FlagEmbedding/baai_general_embedding/finetune/eval_msmarco.py#L254
Let's say I embedded a text and save it in a file. After performing cosine similarity, I want to retrieve text. How can I do it?
I'm using onnx file in rust