Debian Codegraph @

test/command/suite/language_model/options/k/zero.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" : 0 })' --output_columns text
22 [[0,0.0,0.0],[[[0],[["text","ShortText"]]]]]