the-algorithm/ann/src/main/thrift/com/twitter/ann/knn/knn.thrift
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
2023-03-31 17:36:31 -05:00

16 lines
398 B
Thrift

namespace java com.twitter.ann.knn.thriftjava
#@namespace scala com.twitter.ann.knn.thriftscala
namespace py gen.twitter.ann.knn
include "com/twitter/ml/featurestore/entity.thrift"
struct Neighbor {
1: required double distance
2: required entity.EntityId id
} (persisted = "true")
struct Knn {
1: required entity.EntityId queryId
2: required list<Neighbor> neighbors
}(persisted='true')