blob: 4427fa08ab65513afd9e0f148913bd0fc2cc9dc3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema test {
document test {
field vec_a type tensor<float>(x[16]) {
indexing: attribute
}
field vec_b type tensor<float>(x[16]) {
indexing: attribute
attribute {
distance-metric: angular
}
}
field vec_c type tensor<float>(m{},x[16]) {
indexing: attribute
attribute {
distance-metric: innerproduct
}
}
# This tensor field can not be used with nearest neighbor search.
field vec_d type tensor<float>(x{}) {
indexing: attribute
}
}
}
|