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