Debian Codegraph @

test/command/suite/language_model/centroid_column/offline_online.expected

raw
1 plugin_register language_model/knn
2 [[0,0.0,0.0],true]
3 table_create Data TABLE_NO_KEY
4 [[0,0.0,0.0],true]
5 column_create Data text COLUMN_SCALAR ShortText
6 [[0,0.0,0.0],true]
7 column_create Data rabitq_code COLUMN_SCALAR ShortBinary
8 [[0,0.0,0.0],true]
9 load --table Data
10 [
11 {"text": "I am a boy."}
12 ]
13 [[0,0.0,0.0],1]
14 table_create RaBitQ TABLE_HASH_KEY UInt32 --default_tokenizer 'TokenLanguageModelKNN("model", "hf:///groonga/multilingual-e5-base-Q4_K_M-GGUF", "centroid_column", "centroid", "code_column", "rabitq_code", "passage_prefix", "passage: ", "query_prefix", "query: ")'
15 [[0,0.0,0.0],true]
16 column_create RaBitQ centroid COLUMN_VECTOR Float32
17 [[0,0.0,0.0],true]
18 column_create RaBitQ data_text COLUMN_INDEX Data text
19 [[0,0.0,0.0],true]
20 #|w| load: model vocab missing newline token, using special_pad_id instead
21 load --table Data
22 [
23 {"text": "This is an apple."}
24 ]
25 [[0,0.0,0.0],1]
26 select Data --filter 'language_model_knn(text, "male child")' --output_columns text
27 [
28 [
29 0,
30 0.0,
31 0.0
32 ],
33 [
34 [
35 [
36 2
37 ],
38 [
39 [
40 "text",
41 "ShortText"
42 ]
43 ],
44 [
45 "I am a boy."
46 ],
47 [
48 "This is an apple."
49 ]
50 ]
51 ]
52 ]
53 select Data --filter 'language_model_knn(text, "fruit")' --output_columns text
54 [
55 [
56 0,
57 0.0,
58 0.0
59 ],
60 [
61 [
62 [
63 2
64 ],
65 [
66 [
67 "text",
68 "ShortText"
69 ]
70 ],
71 [
72 "This is an apple."
73 ],
74 [
75 "I am a boy."
76 ]
77 ]
78 ]
79 ]