mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-09-19 09:07:36 +03:00
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:
parent
71e37816cc
commit
17b346dfe7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user