From 17b346dfe798c125f5238e26795fe0352972e3d9 Mon Sep 17 00:00:00 2001 From: AT Date: Tue, 14 Nov 2023 11:53:14 -0500 Subject: [PATCH] Update gpt4all-chat/embeddings.cpp Co-authored-by: Jared Van Bortel Signed-off-by: AT --- gpt4all-chat/embeddings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/embeddings.cpp b/gpt4all-chat/embeddings.cpp index 58137809..af99b7d8 100644 --- a/gpt4all-chat/embeddings.cpp +++ b/gpt4all-chat/embeddings.cpp @@ -164,7 +164,7 @@ void Embeddings::clear() std::vector Embeddings::search(const std::vector &embedding, int K) { if (!isLoaded()) - return std::vector(); + return {}; Q_ASSERT(m_hnsw); std::priority_queue> result;