Debian Codegraph @

test/command/suite/language_model/build/small.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")' --output_columns text
22 [
23 [
24 0,
25 0.0,
26 0.0
27 ],
28 [
29 [
30 [
31 3
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 "Groonga is a full text search engine."
47 ]
48 ]
49 ]
50 ]
51 select Data --filter 'language_model_knn(text, "I like fruit")' --output_columns text
52 [
53 [
54 0,
55 0.0,
56 0.0
57 ],
58 [
59 [
60 [
61 3
62 ],
63 [
64 [
65 "text",
66 "ShortText"
67 ]
68 ],
69 [
70 "This is an apple."
71 ],
72 [
73 "I am a boy."
74 ],
75 [
76 "Groonga is a full text search engine."
77 ]
78 ]
79 ]
80 ]