|
1
|
type: object |
|
2
|
description: The options of a vector, or semantic, search. |
|
3
|
x-schemaName: SearchVectorOptions |
|
4
|
properties: |
|
5
|
field: |
|
6
|
type: string |
|
7
|
title: field |
|
8
|
description: >- |
|
9
|
The dotted path of the `vector` field to search in. It's optional when the |
|
10
|
index declares exactly one vector field. |
|
11
|
value: |
|
12
|
type: array |
|
13
|
description: >- |
|
14
|
A pre-computed embedding to search with. It's mutually exclusive with |
|
15
|
`query`. |
|
16
|
items: |
|
17
|
type: number |
|
18
|
title: value |
|
19
|
description: A component of the embedding. |
|
20
|
query: |
|
21
|
type: string |
|
22
|
title: query |
|
23
|
description: >- |
|
24
|
The text that the search engine embeds at query time. It requires the |
|
25
|
vector field to enable `embed`, and it's mutually exclusive with `value`. |
|
26
|
semantic_ratio: |
|
27
|
type: number |
|
28
|
title: semantic_ratio |
|
29
|
description: >- |
|
30
|
How much the semantic score contributes relative to the keyword score, |
|
31
|
where `0` is keyword-only and `1` is semantic-only. It defaults to `1` |
|
32
|
when there's no free-text query, and `0.5` when both run together. |