-
Notifications
You must be signed in to change notification settings - Fork 827
Initial chat template #5837
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
Initial chat template #5837
Conversation
🎉 Good job! The coverage increased 🎉
Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=938045&view=codecoverage-tab |
...ProjectTemplates/Microsoft.Extensions.AI.Templates/src/MyApp1/.template.config/template.json
Outdated
Show resolved
Hide resolved
src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/MyApp1/Program.cs
Outdated
Show resolved
Hide resolved
I'm working through the build failure by mirroring the required packages to |
@stephentoub I know you approved before but that was before I added most of the content. Do you want to look at it again or can I interpret the approval as still in effect? We're not ready for a detailed code review on the template yet as they are still so much in flux. But several people need to collaborate on them so it's valuable to get the work-in-progress state into this repo. So my proposal is we merge this now and once @MackinnonBuck, @jmatthiesen etc are happy with the state of it, we do a more detailed review. |
"type": "bind", | ||
"binding": "HostIdentifier" | ||
}, | ||
"AiServiceProvider": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any way to communicate that the choice made here can easily be changed later, e.g. the Ollama section suggests that's using llama3.2, but changing that later is changing a single string. Or is that expected to be implicitly understood for templates, that choices made at setup are easily alterable later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to resolve all the conversations before CI will let me merge this. I'll unresolve after it merges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is that expected to be implicitly understood for templates, that choices made at setup are easily alterable later?
In general no. Choices made at setup can be arbitrarily impactful. For example in the ASP.NET Core templates, whether or not you enable auth makes a huge difference and it's very much not easy to alter it later.
I don't think we need to provide specific guidance in the template wizard about what choices are easily changeable later. At least, it's not a thing we normally do.
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" /> | ||
#else --> | ||
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" /> | ||
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.1.0-preview.1.25064.3" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we consolidate these versions into one place so that as we rev the template with newer M.E.AI versions, we only need to change one place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to resolve all the conversations before CI will let me merge this. I'll unresolve after it merges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tracked in https://github.com/dotnet/ai-private-planning/issues/276
It's not straightforwards to make these versions update automatically since arcade/darc type updates have nothing to do with template contents. We would need to create a custom build step that does some kind of parameter replacement, similar to what's done for ASP.NET Core templates: https://github.com/dotnet/aspnetcore/blob/main/src/ProjectTemplates/GenerateContent.targets
<PackageReference Include="Microsoft.Extensions.AI" Version="9.1.0-preview.1.25064.3" /> | ||
<PackageReference Include="Microsoft.SemanticKernel.Core" Version="1.34.0" /> | ||
<PackageReference Include="PdfPig" Version="0.1.9" /> | ||
<PackageReference Include="System.Linq.Async" Version="6.0.1" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have this use the new System.Linq.AsyncEnumerable package as soon as the preview 1 version of it is on nuget.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to resolve all the conversations before CI will let me merge this. I'll unresolve after it merges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it's not available yet, tracked in https://github.com/dotnet/ai-private-planning/issues/277
<!--#endif --> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.AI" Version="9.1.0-preview.1.25064.3" /> | ||
<PackageReference Include="Microsoft.SemanticKernel.Core" Version="1.34.0" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SK has already bumped to 1.35. Is there any way we can tie these versions to what's automatically updated by dependabot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to resolve all the conversations before CI will let me merge this. I'll unresolve after it merges.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #5837 (comment)
....AI.Templates/src/ChatWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/Chat.razor
Show resolved
Hide resolved
....AI.Templates/src/ChatWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/Chat.razor
Show resolved
Hide resolved
....AI.Templates/src/ChatWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/Chat.razor
Show resolved
Hide resolved
...es/src/ChatWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatSuggestions.razor
Show resolved
Hide resolved
...es/src/ChatWithCustomData/ChatWithCustomData.Web/Components/Pages/Chat/ChatSuggestions.razor
Show resolved
Hide resolved
...sions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData.Web/Services/JsonVectorStore.cs
Show resolved
Hide resolved
Feel free to merge to unblock collaboration. I skimmed and left a few comments. |
This reverts commit 5f6b171.
…oj in source control
🎉 Good job! The coverage increased 🎉
Full code coverage report: https://dev.azure.com/dnceng-public/public/_build/results?buildId=938562&view=codecoverage-tab |
Microsoft Reviewers: Open in CodeFlow