Skip to content

Commit

Permalink
feat: add store_text_finished signal
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriankhl committed May 29, 2024
1 parent d97880e commit f58df02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/llm_db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ void LlmDB::_bind_methods() {
ClassDB::bind_method(D_METHOD("run_retrieve_similar_texts", "text", "where", "n_results"), &LlmDB::run_retrieve_similar_texts);

ADD_SIGNAL(MethodInfo("retrieve_similar_texts_finished", PropertyInfo(Variant::PACKED_STRING_ARRAY, "array")));

ADD_SIGNAL(MethodInfo("store_text_finished"));
}

LlmDB::LlmDB() : db_dir {"."},
Expand Down Expand Up @@ -948,6 +948,8 @@ void LlmDB::store_text_process() {
store_text_queue.pop();
}
UtilityFunctions::print_verbose("store_text_process -- done");

call_deferred("emit_signal", "store_text_finished");
}

Error LlmDB::run_store_text_by_id(String id, String text) {
Expand Down

0 comments on commit f58df02

Please sign in to comment.