-
Notifications
You must be signed in to change notification settings - Fork 39
Enhance eShopLite with new features and Azure integration #5
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
Conversation
DETAILS This commit introduces significant updates across multiple files, including: - Enhancements to `README.md` with badges, a detailed description of the eShopLite application, and an expanded features section. - Modifications to `.editorconfig` to silence warnings and updates to project files for new project references and configurations. - Creation of `DataEntities.csproj` and `Product.cs` to define the project structure and introduce a new product class with JSON serialization. - Updates to `UserQuestionInsight.cs` for sentiment analysis and user insights. - New Azure deployment configurations in `azure.yaml` and infrastructure definitions in `main.bicep` and related files. - Introduction of various UI components and pages, including `Home.razor`, `Products.razor`, and `Search.razor`. - Addition of a new CSS file, `bootstrap.min.css`, for Bootstrap styles. - Creation of the `ProductVector.cs` class to manage product vectors and updates to the project to target .NET 9.0.
DETAILS Updated `Search.razor` to inject `UserInsightService` and launch `GenerateInsights` in a separate thread for concurrent processing. Introduced `UserInsightService.cs` with methods to fetch user insights from the API, including error handling and logging for improved traceability.
DETAILS Updated `Program.cs` to include Azure OpenAI client configurations, a new SQL Server DbContext, and a chat client setup. Enhanced logging for Azure OpenAI resources and added database creation logic. Modified development environment handling by logging resource information and enabling OpenTelemetry. Corrected globalization invariant mode setting. Expanded service registration to include `UserInsightService` with an HTTP client. Cleaned up import statements in `UserInsightService.cs`.
DETAILS - Added `using Insights.Endpoints` for new functionality. - Implemented `app.MapInsightsEndpoints()` for routing. - Removed `builder.AddProject<Projects.Insights>("insights");` to change project integration. - Eliminated `builder.Build().Run();` for flexible execution structure.
DETAILS - Updated `NavMenu.razor` to include a new navigation link for "Insights". - Created `Insights.razor` page with routing, data fetching, and a table to display user insights. - Implemented asynchronous loading with a simulated delay for streaming rendering.
DETAILS - Modified `Sentiment` enum in `UserQuestionInsight.cs` to include `NotDefined` and adjusted `Negative`. - Updated `Generator.cs` to add Microsoft Semantic Kernel namespaces and modified the constructor to accept a `Kernel` parameter. - Introduced `GenerateInsightAsync` method to define agents for sentiment analysis and language detection, storing results in the database. - Added `Analysis` class to encapsulate sentiment and language detection results, initializing `Sentiment` to `NotDefined`. - Updated `Insights.csproj` with new package references for Microsoft Semantic Kernel components. - Registered additional services in `Program.cs` for the Semantic Kernel and updated `Generator` service registration to include the new `Kernel` instance. - Overall, these changes enhance the application's capabilities in analyzing user questions for sentiment and language.
DETAILS - Added using directives for Microsoft.Extensions.AI and Semantic Kernel in `Generator.cs`. - Modified warning suppression to include SKEXP0001. - Commented out old orchestration code and added new instantiation of `StructuredOutputTransform<Analysis>` using `_chatClient.AsIChatClient()`. - Updated `Program.cs` with new using directives for Azure.AI.OpenAI. - Changed client instantiation from `OpenAIClient` to `AzureOpenAIClient`. - Updated method for adding Azure OpenAI chat client to include the client as a parameter.
DETAILS Updated `Generator.cs` to improve sentiment and language analysis functionality. Added new using directives for Microsoft libraries and modified agent instructions to specify output formats. Restructured orchestration to return an array of strings and introduced `TransformToAnalysis` method to process agent results. Removed logging code and updated database insertion to utilize the new analysis method.
…on and insights storage
Check Country Locale in URLsWe have automatically detected added country locale to URLs in your files. Check the file paths and associated URLs inside them.
|
👋 Thanks for contributing @elbruno! We will review the pull request and get back to you soon. |
Check Broken PathsWe have automatically detected the following broken relative paths in your files. Check the file paths and associated broken paths inside them.
|
Check Broken URLsWe have automatically detected the following broken URLs in your files. Review and fix the paths to resolve this issue. Check the file paths and associated broken URLs inside them.
|
Introduce significant updates including a refined project structure, enhanced sentiment analysis capabilities, and Azure OpenAI integration. Add new UI components, improve logging, and implement concurrent processing for user insights. Update documentation for clarity and better user guidance.