Sample web app showing how to use Semantic Kernel and Ollama OpenAI integration to build an email rewriter. The application uses various plugins and services to enhance the readability and conciseness of emails.
- Rewrite email content to be concise and to the point.
- Use Semantic Kernel's chat completion service for content rewriting.
- Integrate with Ollama OpenAI API endpoint.
- Utilize OpenTelemetry for logging, tracing, and metrics.
- .NET 8 SDK
- Visual Studio 2022
- Ollama OpenAI API endpoint
Clone the repo using the following url: https://github.com/wullemsb/SemanticKernel.git
Ensure you have access to the Ollama OpenAI API endpoint(You can download Ollama here: https://ollama.com/download).
Update the endpoint URL in the Program.cs
files of the projects to point to your Ollama API endpoint.
Open the solution in Visual Studio 2022 and build the projects to restore the necessary packages and dependencies.
Ensure the appsettings.json
or any other configuration files are updated with the necessary settings for your environment.
- Navigate to the
EmailRewriter.AppHost
project. - Run the project using Visual Studio or the .NET CLI
- Access the web application at
https://localhost:17089/
(or the configured URL). - Click on the EmailRewriter-Web endpoint to browse to the application.
- Use the provided UI to input email content and get the rewritten version.
Contributions are welcome! Please fork the repository and submit pull requests for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for more details.