Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Formatting
ozanarmagana4b652da7b60
diff --git a/include/text_embedder_manager.h b/include/text_embedder_manager.hindex 559f782a..3b626a97 100644--- a/include/text_embedder_manager.h+++ b/include/text_embedder_manager.h@@ -100,20 +100,20 @@ public:inline static void download_default_model() {HttpClient& httpClient = HttpClient::get_instance();if(!check_md5(get_absolute_model_path(DEFAULT_MODEL_NAME), DEFAULT_MODEL_MD5)) {- LOG(INFO) << "Downloading default model";- long res = httpClient.download_file(DEFAULT_MODEL_URL, get_absolute_model_path(DEFAULT_MODEL_NAME));- if(res != 200) {- LOG(INFO) << "Failed to download default model: " << res;+ LOG(INFO) << "Downloading default model";+ long res = httpClient.download_file(DEFAULT_MODEL_URL, get_absolute_model_path(DEFAULT_MODEL_NAME));+ if(res != 200) {+ LOG(INFO) << "Failed to download default model: " << res;+ }}- }- if(!check_md5(get_absolute_vocab_path(), DEFAULT_VOCAB_MD5)) {- LOG(INFO) << "Downloading default vocab";- long res = httpClient.download_file(DEFAULT_VOCAB_URL, get_absolute_vocab_path());- if(res != 200) {- LOG(INFO) << "Failed to download default vocab: " << res;+ if(!check_md5(get_absolute_vocab_path(), DEFAULT_VOCAB_MD5)) {+ LOG(INFO) << "Downloading default vocab";+ long res = httpClient.download_file(DEFAULT_VOCAB_URL, get_absolute_vocab_path());+ if(res != 200) {+ LOG(INFO) << "Failed to download default vocab: " << res;+ }}}- }private:TextEmbedderManager() = default;std::unordered_map<std::string, TextEmbedder*> text_embedders;