Debian Codegraph @

test/command/suite/language_model/options/k/limit.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 ]
15 [[0,0.0,0.0],3]
16 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: ")'
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 select Data --filter 'language_model_knn(text, "male child", { "k" : 2 })' --output_columns text
22 [
23 [
24 0,
25 0.0,
26 0.0
27 ],
28 [
29 [
30 [
31 2
32 ],
33 [
34 [
35 "text",
36 "ShortText"
37 ]
38 ],
39 [
40 "I am a boy."
41 ],
42 [
43 "This is an apple."
44 ]
45 ]
46 ]
47 ]