Update gpt4all-chat/embeddings.cpp

Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
Signed-off-by: AT <manyoso@users.noreply.github.com>
This commit is contained in:
AT 2023-11-14 11:53:14 -05:00
parent 71e37816cc
commit 17b346dfe7

View File

@ -164,7 +164,7 @@ void Embeddings::clear()
std::vector<qint64> Embeddings::search(const std::vector<float> &embedding, int K)
{
if (!isLoaded())
return std::vector<qint64>();
return {};
Q_ASSERT(m_hnsw);
std::priority_queue<std::pair<float, hnswlib::labeltype>> result;