Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the CsharpOllamaCodeSpaces c# samples to use phi3.5 and fix RAG errors #250

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

elbruno
Copy link
Contributor

@elbruno elbruno commented Jan 27, 2025

Purpose

Update the CsharpOllamaCodeSpaces c# samples to use phi3.5 and fix the errors on the RAG samples

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by (https://azure.microsoft.com/products/phi-3)
which includes deployment, settings and usage instructions.

[ ] Yes
[X] No

Type of change

[X] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[X] Other... Please describe: upgrade nuget packages

Updated devcontainer configuration to pull models and improved formatting.
Refactored Program.cs to replace OpenAI with Ollama chat completion and enhanced chat history management.
Updated project files to reference newer Semantic Kernel packages and added memory management components.
Introduced SpectreConsoleOutput.cs for better console message formatting and improved overall code structure for readability.
Refactor Sample01.csproj, Sample02.csproj, Sample03.csproj, and Sample04.csproj to target .NET 9.0 instead of .NET 8.0.
Reformat ItemGroup sections for improved readability while retaining existing package references.
Preserve UserSecretsId property in Sample02.csproj and Sample04.csproj.
Changed `modelIdEmbeddings` to `modelIdChat` in console
output to accurately reflect the model being used. Updated
messages to ensure consistency and clarity regarding the
model identifier throughout the program.
@leestott leestott merged commit 6717c95 into microsoft:main Jan 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants