plugin_register language_model/knn [[0,0.0,0.0],true] table_create Data TABLE_NO_KEY [[0,0.0,0.0],true] column_create Data text COLUMN_SCALAR ShortText [[0,0.0,0.0],true] column_create Data rabitq_code COLUMN_SCALAR ShortBinary [[0,0.0,0.0],true] load --table Data [ {"text": "I am a boy."} ] [[0,0.0,0.0],1] table_create RaBitQ TABLE_HASH_KEY UInt32 --default_tokenizer 'TokenLanguageModelKNN("model", "hf:///groonga/multilingual-e5-base-Q4_K_M-GGUF", "centroid_column", "centroid", "code_column", "rabitq_code", "passage_prefix", "passage: ", "query_prefix", "query: ")' [[0,0.0,0.0],true] column_create RaBitQ centroid COLUMN_VECTOR Float32 [[0,0.0,0.0],true] column_create RaBitQ data_text COLUMN_INDEX Data text [[0,0.0,0.0],true] #|w| load: model vocab missing newline token, using special_pad_id instead load --table Data [ {"text": "This is an apple."} ] [[0,0.0,0.0],1] select Data --filter 'language_model_knn(text, "male child")' --output_columns text [ [ 0, 0.0, 0.0 ], [ [ [ 2 ], [ [ "text", "ShortText" ] ], [ "I am a boy." ], [ "This is an apple." ] ] ] ] select Data --filter 'language_model_knn(text, "fruit")' --output_columns text [ [ 0, 0.0, 0.0 ], [ [ [ 2 ], [ [ "text", "ShortText" ] ], [ "This is an apple." ], [ "I am a boy." ] ] ] ]