File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ impl EmbeddingPluginOperation {
38
38
. ok_or ( PluginError :: Internal ( anyhow ! ( "Plugin is dropped" ) ) ) ?;
39
39
let metadata = json ! ( metadata) ;
40
40
let params =
41
- json ! ( { "method" : "aindex_document " , "params" : { "input" : message, "metadata" : metadata } } ) ;
41
+ json ! ( { "method" : "index_document " , "params" : { "input" : message, "metadata" : metadata } } ) ;
42
42
plugin
43
43
. async_request :: < DefaultResponseParser > ( "handle" , & params)
44
44
. await
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ impl LocalEmbedding {
67
67
"absolute_model_path" : config. model_path,
68
68
} ) ;
69
69
70
- if let Some ( storage_path ) = config. storage_path {
71
- params[ "storage_path " ] = json ! ( storage_path ) ;
70
+ if let Some ( persist_directory ) = config. persist_directory {
71
+ params[ "persist_directory " ] = json ! ( persist_directory ) ;
72
72
}
73
73
74
74
let plugin = self . plugin_manager . init_plugin ( plugin_id, params) . await ?;
@@ -157,7 +157,7 @@ impl LocalEmbedding {
157
157
pub struct EmbeddingPluginConfig {
158
158
pub bin_path : PathBuf ,
159
159
pub model_path : PathBuf ,
160
- pub storage_path : Option < PathBuf > ,
160
+ pub persist_directory : Option < PathBuf > ,
161
161
}
162
162
163
163
impl EmbeddingPluginConfig {
@@ -192,7 +192,7 @@ impl EmbeddingPluginConfig {
192
192
Ok ( Self {
193
193
bin_path,
194
194
model_path,
195
- storage_path,
195
+ persist_directory : storage_path,
196
196
} )
197
197
}
198
198
}
You can’t perform that action at this time.
0 commit comments