Debian Codegraph @

doc/source/example/reference/functions/language_model_vectorize/usage_rerank.md

raw symbols SCIP
1 Execution example:
2
3 ```shell
4 select \
5 --table Memos \
6 --columns[similarity].stage filtered \
7 --columns[similarity].flags COLUMN_SCALAR \
8 --columns[similarity].types Float32 \
9 --columns[similarity].value 'distance_inner_product(content_embedding, language_model_vectorize("mistral-7b-v0.1.Q4_K_M", "high performance FTS"))' \
10 --output_columns content,similarity \
11 --sort_keys -similarity
12 # [
13 # [
14 # 0,
15 # 1337566253.89858,
16 # 0.000355720520019531
17 # ],
18 # [
19 # [
20 # [
21 # 3
22 # ],
23 # [
24 # [
25 # "content",
26 # "ShortText"
27 # ],
28 # [
29 # "similarity",
30 # "Text"
31 # ]
32 # ],
33 # [
34 # "Groonga is fast and embeddable full text search engine.",
35 # "0.6581704020500183"
36 # ],
37 # [
38 # "PGroonga is a PostgreSQL extension that uses Groonga.",
39 # "0.6540993452072144"
40 # ],
41 # [
42 # "PostgreSQL is a RDBMS.",
43 # "0.6449499130249023"
44 # ]
45 # ]
46 # ]
47 # ]
48 ```