Debian Codegraph @

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