Retrieves the nearest strings to a vector, given a distance, a number of neighbors, and a distance type.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Natural Language
A location in the vocabulary space.
The largest number of neighboring strings to find.
The largest distance a neighbor can be from the given vector.
The type of distance, which determines the formula the method uses to calculate distance.
An array of terms.