-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvector.sd
More file actions
46 lines (38 loc) · 877 Bytes
/
vector.sd
File metadata and controls
46 lines (38 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema vector {
document vector {
field id type string {
indexing: summary | attribute
attribute: fast-search
rank: filter
}
field tags type array<string> {
indexing: summary | attribute
attribute: fast-search
rank: filter
}
field vector type tensor<float>(d[768]) {
indexing: summary | attribute | index
attribute {
distance-metric: angular
}
}
}
document-summary mini {
summary id {}
summary tags {}
}
document-summary all {
summary id {}
summary tags {}
summary vector {}
}
rank-profile default {
inputs {
query(q) tensor<float>(d[768])
}
first-phase {
expression: cos(distance(field, vector))
}
}
}