blob: 6f5c5a93de2893e58894d84f0bd9d7d1f02942bb (
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 Vespa.ai. 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
}
}
}
|