VLINKS

Since 1.1.0Vector sets

Syntax

VLINKS key element [WITHSCORES]
  • Flags: readonly
  • ACL categories: @read, @slow, @vector
  • Arity: -2

Returns an element's nearest neighbours, up to 16, as one level; WITHSCORES gives their similarity. KiviDB has no graph to read them from, so they are found by comparing vectors.

Examples

> VLINKS points a WITHSCORES
1) 1) "b"
   2) "0.993884"
   3) "c"
   4) "0.000000"