Debian Codegraph @

test/command/suite/language_model/centroid_column/offline.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 {"text": "This is an apple."}
13 ]
14 [[0,0.0,0.0],2]
15 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: ")'
16 [[0,0.0,0.0],true]
17 column_create RaBitQ centroid COLUMN_VECTOR Float32
18 [[0,0.0,0.0],true]
19 column_create RaBitQ data_text COLUMN_INDEX Data text
20 [[0,0.0,0.0],true]
21 #|w| load: model vocab missing newline token, using special_pad_id instead
22 select Data --filter 'language_model_knn(text, "male child")' --output_columns text
23 [
24 [
25 0,
26 0.0,
27 0.0
28 ],
29 [
30 [
31 [
32 2
33 ],
34 [
35 [
36 "text",
37 "ShortText"
38 ]
39 ],
40 [
41 "I am a boy."
42 ],
43 [
44 "This is an apple."
45 ]
46 ]
47 ]
48 ]
49 select Data --filter 'language_model_knn(text, "fruit")' --output_columns text
50 [
51 [
52 0,
53 0.0,
54 0.0
55 ],
56 [
57 [
58 [
59 2
60 ],
61 [
62 [
63 "text",
64 "ShortText"
65 ]
66 ],
67 [
68 "This is an apple."
69 ],
70 [
71 "I am a boy."
72 ]
73 ]
74 ]
75 ]