I found out that if i add attribute :neighbor_distance to my model. Then I will get the distance set on my models from the query. This is not exactly the max_distance option from the Ideas issue. But better than nothing.
class Document < ApplicationRecord
has_neighbors :embedding
attribute :neighbor_distance
end
I found out that if i add
attribute :neighbor_distance
to my model. Then I will get the distance set on my models from the query. This is not exactly themax_distance
option from the Ideas issue. But better than nothing.