mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-18 17:18:48 +02:00
![twitter-team](/assets/img/avatar_default.png)
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.
16 lines
398 B
Thrift
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')
|