This commit is contained in:
narawat lamaiin
2025-04-01 21:17:15 +07:00
parent b8fd772a28
commit c21f943b12
4 changed files with 64 additions and 40 deletions

View File

@@ -95,10 +95,7 @@ function getEmbedding(text::T) where {T<:AbstractString}
)
)
#BUG it returns nothing from ollama
response = GeneralUtils.sendReceiveMqttMsg(outgoingMsg; timeout=120, maxattempt=2)
response = GeneralUtils.sendReceiveMqttMsg(outgoingMsg; timeout=120, maxattempt=3)
embedding = response[:response][:embeddings]
return embedding
end