diff --git a/+llms/+internal/callOllamaChatAPI.m b/+llms/+internal/callOllamaChatAPI.m index 31a1616..4596231 100644 --- a/+llms/+internal/callOllamaChatAPI.m +++ b/+llms/+internal/callOllamaChatAPI.m @@ -1,7 +1,7 @@ function [text, message, response] = callOllamaChatAPI(model, messages, nvp) % This function is undocumented and will change in a future release -%callOllamaChatAPI Calls the Ollama® chat completions API. +%callOllamaChatAPI Calls the Ollama™ chat completions API. % % MESSAGES and FUNCTIONS should be structs matching the json format % required by the Ollama Chat Completions API. diff --git a/README.md b/README.md index 96b2412..4bcf377 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=matlab-deep-learning/llms-with-matlab) [![View Large Language Models (LLMs) with MATLAB on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/163796-large-language-models-llms-with-matlab) -This repository contains code to connect MATLAB to the [OpenAI™ Chat Completions API](https://platform.openai.com/docs/guides/text-generation/chat-completions-api) (which powers ChatGPT™), OpenAI Images API (which powers DALL·E™), [Azure® OpenAI Service](https://learn.microsoft.com/en-us/azure/ai-services/openai/), and both local and nonlocal [Ollama®](https://ollama.com/) models. This allows you to leverage the natural language processing capabilities of large language models directly within your MATLAB environment. +This repository contains code to connect MATLAB to the [OpenAI™ Chat Completions API](https://platform.openai.com/docs/guides/text-generation/chat-completions-api) (which powers ChatGPT™), OpenAI Images API (which powers DALL·E™), [Azure® OpenAI Service](https://learn.microsoft.com/en-us/azure/ai-services/openai/), and both local and nonlocal [Ollama™](https://ollama.com/) models. This allows you to leverage the natural language processing capabilities of large language models directly within your MATLAB environment. ## Requirements diff --git a/doc/Ollama.md b/doc/Ollama.md index 6721e12..110a869 100644 --- a/doc/Ollama.md +++ b/doc/Ollama.md @@ -1,6 +1,6 @@ # Ollama -This repository contains code to connect MATLAB to an [Ollama®](https://ollama.com) server, running large language models (LLMs). +This repository contains code to connect MATLAB to an [Ollama™](https://ollama.com) server, running large language models (LLMs). To use local models with Ollama, you will need to install and start an Ollama server, and “pull” models into it. Please follow the Ollama documentation for details. You should be familiar with the limitations and risks associated with using this technology, and you agree that you shall be solely responsible for full compliance with any terms that may apply to your use of any specific model. diff --git a/examples/CreateSimpleOllamaChatBot.mlx b/examples/CreateSimpleOllamaChatBot.mlx index 64f9b31..b87d21b 100644 Binary files a/examples/CreateSimpleOllamaChatBot.mlx and b/examples/CreateSimpleOllamaChatBot.mlx differ diff --git a/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx b/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx index c248ba0..c7f0776 100644 Binary files a/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx and b/examples/RetrievalAugmentedGenerationUsingOllamaAndMATLAB.mlx differ diff --git a/ollamaChat.m b/ollamaChat.m index 001f18d..cdb2e35 100644 --- a/ollamaChat.m +++ b/ollamaChat.m @@ -1,5 +1,5 @@ classdef (Sealed) ollamaChat < llms.internal.textGenerator -%ollamaChat Chat completion API from Ollama®. +%ollamaChat Chat completion API from Ollama™. % % CHAT = ollamaChat(modelName) creates an ollamaChat object for the given model. %