diff --git a/README.md b/README.md index 06711a2..0813d17 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ proprietary data. To install this memory store, you need to add the required nuget package to your project: ```dotnetcli -dotnet add package SemanticKernel.Assistants --version 1.1.1-preview +dotnet add package SemanticKernel.Assistants --version 1.2.0-preview ``` ## Usage @@ -89,6 +89,31 @@ dotnet add package SemanticKernel.Assistants --version 1.1.1-preview await thread.InvokeAsync("Your ask to the assistant."); ``` +## Ollama Suport + +This assistant supports the [Ollama](https://ollama.ai/) platform, giving you the ability to use the assistant by hosting easyly your LLM models locally. + +To use Ollama, install the Ollama extension package: + +```dotnetcli +dotnet add package SemanticKernel.Assistants --version 1.2.0-preview + +``` + +Then, instanciate your assistant with the Ollama extension: + +```csharp +var mathematician = AssistantBuilder.FromTemplate("./Assistants/Mathematician.yaml", + plugins: new List() + { + KernelPluginFactory.CreateFromObject(new MathPlugin(), "math") + }) + .WithOllamaChatCompletion(ollamaEndpoint, client => { + client.Timeout = TimeSpan.FromMinutes(5); + }) + .Build(); +``` + ## License This project is licensed under the [MIT License](LICENSE).