diff --git a/gpt4all-chat/embeddings.cpp b/gpt4all-chat/embeddings.cpp index af99b7d8..6bfe256a 100644 --- a/gpt4all-chat/embeddings.cpp +++ b/gpt4all-chat/embeddings.cpp @@ -172,7 +172,7 @@ std::vector Embeddings::search(const std::vector &embedding, int result = m_hnsw->searchKnn(embedding.data(), K); } catch (const std::exception &e) { qWarning() << "ERROR: could not search hnswlib index:" << e.what(); - return std::vector(); + return {}; } std::vector neighbors;