aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/nearestneighbor/test.sd
blob: 5b891049480c8cbdc42a0db9af6f4186f5e86411 (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
25
26
27
28
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema test {
  document test {
    field id type int {
      indexing: attribute | summary
    }
    field vec type tensor<float>(x[5]) {
      indexing: attribute | summary
    }
    field vec_hnsw type tensor<float>(x[5]) {
      indexing: attribute | index | summary
      index {
        hnsw {
          max-links-per-node: 16
          neighbors-to-explore-at-insert: 200
        }
      }
    }
  }
  rank-profile default {
    first-phase {
      expression: 10000 - itemRawScore(nns)
    }
  }
  document-summary minimal {
    summary id {}
  }
}