Skip to content

Commit

Permalink
PBI Data Report and Chat With your data variables
Browse files Browse the repository at this point in the history
  • Loading branch information
heblasco committed Nov 22, 2023
1 parent 2672a97 commit b530b44
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/AIHub/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@{
@inject IConfiguration Configuration
@{
ViewData["Title"] = "Alma Bank Demo Suite";
}

Expand All @@ -9,7 +10,7 @@

<ul class="homeBlockNavList">
<li key="chat">
<a href="https://app-backend-cn4btwnl6x3wu.azurewebsites.net/" target="_blank" style="text-decoration: none">
<a href="@Configuration["ChatOnYourData:Link"]" target="_blank" style="text-decoration: none">
<div class="homeBlock" >
<svg style="fill: var(--main-color)" xmlns="http://www.w3.org/2000/svg" height="2em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @@fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path d="M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg>
<p class="homeBlockText">Chat on your Data</p>
Expand Down
7 changes: 4 additions & 3 deletions src/AIHub/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE html>
@inject IConfiguration Configuration
<!DOCTYPE html>
<html lang="en">

<head>
Expand Down Expand Up @@ -26,7 +27,7 @@
<ul class="navbar-nav flex-grow-1">

<li class="nav-item">
<a class="nav-link" style="color: var(--layout-text-color);" href="https://app-backend-4uekuzf7jrsmo.azurewebsites.net" target="_blank">Chat on your data <svg xmlns="http://www.w3.org/2000/svg" height="1.25em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @@fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill: var(--layout-text-color)}</style><path d="M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg></a>
<a class="nav-link" style="color: var(--layout-text-color);" href="@Configuration["ChatOnYourData:Link"]" target="_blank">Chat on your data <svg xmlns="http://www.w3.org/2000/svg" height="1.25em" viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.2 by @@fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill: var(--layout-text-color)}</style><path d="M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/></svg></a>
</li>
<li class="nav-item">
<a class="nav-link" style="color: var(--layout-text-color);" asp-area="" asp-controller="CallCenter"
Expand Down Expand Up @@ -60,7 +61,7 @@
</ul>
</li>
<li class="nav-item">
<a class="nav-link" style="color: var(--layout-text-color);" href="https://app.powerbi.com/view?r=eyJrIjoiYWI2MGM0OWUtNGQ2Yy00MmY5LWI5MTktZDI5N2E5OGVkNDZhIiwidCI6Ijg1NTQyMzgwLTI4YjEtNDkxMi1iNjczLTM5ODk1MWM5ZjRhYyIsImMiOjZ9" target="_blank">PBI Data Report <svg xmlns="http://www.w3.org/2000/svg" height="1.25em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @@fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill: var(--layout-text-color)}</style><path d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm64 192c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V256c0-17.7 14.3-32 32-32zm64-64c0-17.7 14.3-32 32-32s32 14.3 32 32V352c0 17.7-14.3 32-32 32s-32-14.3-32-32V160zM320 288c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V320c0-17.7 14.3-32 32-32z"/></svg></a>
<a class="nav-link" style="color: var(--layout-text-color);" href="@Configuration["PBIReport:Link"]" target="_blank">PBI Data Report <svg xmlns="http://www.w3.org/2000/svg" height="1.25em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @@fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill: var(--layout-text-color)}</style><path d="M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm64 192c17.7 0 32 14.3 32 32v96c0 17.7-14.3 32-32 32s-32-14.3-32-32V256c0-17.7 14.3-32 32-32zm64-64c0-17.7 14.3-32 32-32s32 14.3 32 32V352c0 17.7-14.3 32-32 32s-32-14.3-32-32V160zM320 288c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V320c0-17.7 14.3-32 32-32z"/></svg></a>
</li>

@* <li class="nav-item">
Expand Down
48 changes: 48 additions & 0 deletions src/AIHub/appsettings.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ContentModerator": {
"Endpoint": "<EndPoint>",
"SubscriptionKey": "<SUB KEY>"
},
"BrandAnalyzer": {
"BingEndpoint": "https://api.bing.microsoft.com/v7.0/search",
"BingKey": "<Bing Key>",
"OpenAIEndpoint": "<AOAI EndPoint>",
"OpenAISubscriptionKey": "<KEY>"
},
"CallCenter": {
"OpenAIEndpoint": "<AOAI EndPoint>",
"OpenAISubscriptionKey": "<KEY>"
},
"ImageAnalyzer": {
"VisionEndpoint": "<Vision EndPoint>",
"OCREndpoint": "<OCR EndPoint>",
"VisionSubscriptionKey": "<KEY>",
"OpenAIEndpoint": "<AOAI EndPoint>",
"OpenAISubscriptionKey": "KEY",
"ContainerName": "image-analyzer"
},
"FormAnalyzer": {
"FormRecogEndpoint": "<Form Recog EndPoint>",
"FormRecogSubscriptionKey": "<KEY>",
"OpenAIEndpoint": "<AOAI EndPoint>",
"OpenAISubscriptionKey": "<KEY>",
"ContainerName": "form-analyzer"
},
"ChatOnYourData": {
"Link": "<Link to Chat>"
},
"PBIReport": {
"Link": ">Link to PBIReport>"
},
"Storage": {
"ConnectionString": "<Storage connString>",
"ContainerName": "image-moderator"
},
"AllowedHosts": "*"
}

0 comments on commit b530b44

Please sign in to comment.