Debian Codegraph @

test/command/suite/language_model/options/k/minus/one.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 {"text": "Groonga is a full text search engine."},
14 {"text": "This is an orange."},
15 {"text": "This is a banana."},
16 {"text": "This is a tomato."},
17 {"text": "This is a carrot."},
18 {"text": "This is a cucumber."},
19 {"text": "This is a pepper."},
20 {"text": "This is a potato."},
21 {"text": "This is a onion."}
22 ]
23 [[0,0.0,0.0],11]
24 table_create RaBitQ TABLE_HASH_KEY ShortBinary --default_tokenizer 'TokenLanguageModelKNN("model", "hf:///groonga/multilingual-e5-base-Q4_K_M-GGUF", "code_column", "rabitq_code", "passage_prefix", "passage: ", "query_prefix", "query: ")'
25 [[0,0.0,0.0],true]
26 column_create RaBitQ data_text COLUMN_INDEX Data text
27 [[0,0.0,0.0],true]
28 #|w| load: model vocab missing newline token, using special_pad_id instead
29 select Data --filter 'language_model_knn(text, "male child", { "k" : -1 })' --output_columns text
30 [
31 [
32 0,
33 0.0,
34 0.0
35 ],
36 [
37 [
38 [
39 11
40 ],
41 [
42 [
43 "text",
44 "ShortText"
45 ]
46 ],
47 [
48 "I am a boy."
49 ],
50 [
51 "This is a pepper."
52 ],
53 [
54 "This is a cucumber."
55 ],
56 [
57 "This is a carrot."
58 ],
59 [
60 "This is a potato."
61 ],
62 [
63 "This is an apple."
64 ],
65 [
66 "This is a banana."
67 ],
68 [
69 "This is a tomato."
70 ],
71 [
72 "This is an orange."
73 ],
74 [
75 "This is a onion."
76 ]
77 ]
78 ]
79 ]