T
T
TechNOIR2019-03-11 11:28:25
elasticsearch
TechNOIR, 2019-03-11 11:28:25

elasticsearch. How to get to store vectors (arrays) and get the Euclidean distance for the required query?

Good afternoon.
A couple of follow up questions.
1. I want to store arrays of images obtained from numpy (Python)
Arrays, for example, are like this: [1.1, 2.2, 3.3, 4.4, 5.5, 6.6]
How can they be indexed?
2. Suppose they are indexed.
We have an array [1.2, 2.4, 3.5, 4.9, 5.0, 6.7]
It is not in the index. But you need to get as similar as possible to it.
Ideally, when requesting, receive several responses of the form:

1. - массив
    - число евклидовой дистанции
2. - массив
    - число евклидовой дистанции
3. - массив
    - число евклидовой дистанции

Something similar is announced in future versions.
But I would like to know if there are any solutions now? Plugins?
thanks in advance

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question