Conversation
Publish tno-core:1.0.31 Add DB migration 1.4.1
| <PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" /> | ||
| <PackageReference Include="Microsoft.AspnetCore.Authentication.jwtBearer" Version="9.0.0" /> | ||
| <PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.1.0" /> | ||
| <PackageReference Include="Microsoft.AspNetCore.Server.Kestrel.Core" Version="2.3.9" /> |
There was a problem hiding this comment.
Fixes security warnings
| @(section.Value.Data) | ||
| </div> | ||
| } | ||
| else if (section.Value.SectionType == ReportSectionType.AI) |
There was a problem hiding this comment.
We now have a new section in the report
| <FormikText name={`sections.${index}.settings.label`} label="Section heading:" /> | ||
| </Col> | ||
| <Row> | ||
| {userInfo?.roles.includes(Claim.administrator) && ( |
There was a problem hiding this comment.
Only display some of the options to administrators.
There was a problem hiding this comment.
Refer to the CustomReport.cshtml file changes to see what has changed.
| podsFolderCollection=$(getPods folder-collection-service deployment $env) | ||
| podsContent=$(getPods content-service deployment $env) | ||
| podsIndexing=$(getPods indexing-service deployment $env) | ||
| if [ "$env" != "dev "]; then |
There was a problem hiding this comment.
In DEV we don't have a cloud instance of Elasticsearch.
| this.Logger.LogError("Failed to fetch data from {url}, {status}", url, response.StatusCode); | ||
| } | ||
| }); | ||
| await GenerateReportDataSectionsAsync(report, sectionContent); |
There was a problem hiding this comment.
Moved to separate function for maintainability.
| /// <param name="sectionContent"></param> | ||
| /// <param name="pathToFiles"></param> | ||
| /// <returns></returns> | ||
| private async Task GenerateReportImageSectionsAsync( |
There was a problem hiding this comment.
No change, just moved for clarity
| /// <param name="report"></param> | ||
| /// <param name="sectionContent"></param> | ||
| /// <returns></returns> | ||
| private async Task GenerateReportDataSectionsAsync( |
There was a problem hiding this comment.
No change, moved for clarity
| /// <param name="sectionContent"></param> | ||
| /// <param name=""></param> | ||
| /// <returns></returns> | ||
| private async Task GenerateReportAISectionsAsync( |
There was a problem hiding this comment.
Here is the new AI section. Note, we're using the raw API because the latest Nuget packages don't support API Key authentication.
| foreach (var section in sectionContent.Where(sc => sc.Value.Content.Any())) | ||
| { | ||
| allContent.AppendLine($"#### {section.Value.Settings.Label}"); | ||
| var sectionContentJson = section.Value.Content.Select(c => new |
There was a problem hiding this comment.
We serialize only some of the content information to speed up the request processing.
Publish tno-core:1.0.31 Add DB migration 1.4.1 Fix linting
Publish tno-core:1.0.31 Add DB migration 1.4.1 Fix linting
Publish tno-core:1.0.31 Add DB migration 1.4.1 Fix linting
Publish tno-core:1.0.31 Add DB migration 1.4.1 Fix linting
Publish tno-core:1.0.31 Add DB migration 1.4.1 Fix linting
Publish tno-core:1.0.32 Add DB migration 1.4.1 Fix linting
Publish tno-core:1.0.32 Add DB migration 1.4.1 Fix linting
We now have a way to include an AI Summary section in reports. This new feature uses Azure AI Foundry API.
Both the Editor and Subscriber applications now have a new AI section that can be added to a report. An administrator can choose the deployed AI model, temperature, system prompt and the user prompt. The content is added to the prompt and a summary can be generated. With this process we can ask AI to do almost anything.
Summary
Editor Report Admin
Subscriber Report Admin