You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Matlab access to Ollama only supports text generation, but not the embeddings.
However, adding this functionality should not be hard, here is a snippet:
url ='http://localhost:11434/api/embeddings';
data = struct(...
'model', 'llama3.1', ...
'prompt', 'Llamas are members of the camelid family');
% Send the HTTP POST request
options = weboptions('MediaType', 'application/json');
response = webwrite(url, data, options)
disp(response.embedding)
The text was updated successfully, but these errors were encountered:
Currently Matlab access to Ollama only supports text generation, but not the embeddings.
However, adding this functionality should not be hard, here is a snippet:
The text was updated successfully, but these errors were encountered: