Skip to content

Commit

Permalink
Make sure to use the search_query tag for nomic embed.
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Treat <treat.adam@gmail.com>
  • Loading branch information
manyoso committed Feb 1, 2024
1 parent d14b95f commit cdf0fed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpt4all-chat/embllm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void EmbeddingLLMWorker::requestSyncEmbedding(const QString &text)
QJsonArray texts;
texts.append(text);
root.insert("texts", texts);
root.insert("task_type", "search_query");

QJsonDocument doc(root);

Expand Down

0 comments on commit cdf0fed

Please sign in to comment.