Skip to contents

Order keys by their similarity to a key

Usage

most_similar(
  conn,
  key,
  q,
  n = 1L,
  normalized = TRUE,
  method = c("cosine", "correlation", "jaccard", "ejaccard", "dice", "edice", "hamann",
    "simple matching", "faith")
)

Arguments

conn

a Magnitude connection.

key

string.

q

character vector. elements exact same with key will be dropped from result.

n

integer.

normalized

logical; whether or not vector embeddings should be normalized?

method

string; method to compute similarity.

Value

a tibble.