Skip to content

chore: Dev #2

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

Merged
merged 115 commits into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
ecbd7bd
build: bump pydantic-settings from 2.7.0 to 2.7.1
dependabot[bot] Jan 2, 2025
c574173
build: bump eslint-plugin-n from 16.6.2 to 17.15.1 in /frontend
dependabot[bot] Jan 3, 2025
9093503
build: bump @fluentui/react from 8.122.3 to 8.122.4 in /frontend
dependabot[bot] Jan 3, 2025
3c4f715
Merge pull request #192 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Jan 3, 2025
61d4724
build: bump pytest-asyncio from 0.25.0 to 0.25.3
dependabot[bot] Feb 1, 2025
dd0e7b8
build: bump azure-storage-blob from 12.24.0 to 12.24.1
dependabot[bot] Feb 1, 2025
94e4ea7
build: bump isort from 5.13.2 to 6.0.0
dependabot[bot] Feb 1, 2025
ec3b388
build: bump react-dom and @types/react-dom in /frontend
dependabot[bot] Feb 1, 2025
a79ada9
build: bump @fluentui/react from 8.122.4 to 8.122.9 in /frontend
dependabot[bot] Feb 1, 2025
446b92d
updated user prompt
AjitPadhi-Microsoft Feb 7, 2025
471d51c
UI - SectionCard API failing issue (re triggering API when it is fails)
Bangarraju-Microsoft Feb 10, 2025
81f513e
build: bump vite from 4.5.5 to 6.1.0 in /frontend
dependabot[bot] Feb 18, 2025
3ffff6c
Merge pull request #177 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
64b17c4
Merge pull request #180 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
64351d9
Merge pull request #198 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
6be49e9
build: bump black from 24.10.0 to 25.1.0
dependabot[bot] Feb 18, 2025
fa79e3b
Merge pull request #200 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
d5eafc1
Merge pull request #201 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
f7882db
Merge pull request #204 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
3062dcc
build: bump eslint-plugin-react from 7.37.3 to 7.37.4 in /frontend
dependabot[bot] Feb 18, 2025
53f6615
Merge pull request #206 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
f5e43a7
build: bump pymupdf from 1.25.1 to 1.25.3
dependabot[bot] Feb 18, 2025
d0af404
build: bump langchain from 0.3.13 to 0.3.19
dependabot[bot] Feb 18, 2025
df2d506
Merge pull request #209 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
b2545e9
build: bump azure-search-documents from 11.6.0b8 to 11.6.0b9
dependabot[bot] Feb 18, 2025
68101d2
Merge pull request #211 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
575981c
build: bump docx from 8.5.0 to 9.2.0 in /frontend
dependabot[bot] Feb 18, 2025
bfff91d
Merge pull request #205 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
820e55a
build: bump @types/node from 22.10.3 to 22.13.4 in /frontend
dependabot[bot] Feb 18, 2025
ecb8f9a
Merge pull request #228 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
dcb26e3
Merge pull request #227 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
8dd4d65
Merge pull request #226 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
fc521d3
Merge pull request #224 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
d9e807e
build: bump openai from 1.58.1 to 1.63.2
dependabot[bot] Feb 18, 2025
c4d1549
build: bump azure-identity from 1.17.1 to 1.20.0
dependabot[bot] Feb 18, 2025
2e14e27
build: bump plotly.js from 2.35.3 to 3.0.0 in /frontend
dependabot[bot] Feb 18, 2025
4c0f0e0
Merge pull request #222 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
10f3491
Merge pull request #223 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
b54f3c0
Merge pull request #221 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
3b619cf
Merge pull request #210 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
3758e6b
build: bump aiohttp from 3.11.11 to 3.11.12
dependabot[bot] Feb 18, 2025
ebc85cc
build: bump lint-staged from 15.3.0 to 15.4.3 in /frontend
dependabot[bot] Feb 18, 2025
ce8a96e
build: bump flake8 from 7.1.1 to 7.1.2
dependabot[bot] Feb 18, 2025
d6a73f9
build: bump eslint-plugin-promise from 6.6.0 to 7.2.1 in /frontend
dependabot[bot] Feb 18, 2025
3fe622c
build: bump @types/react-dom from 19.0.3 to 19.0.4 in /frontend
dependabot[bot] Feb 18, 2025
76b5620
Merge pull request #229 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
3ddb03c
Merge pull request #230 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
892c374
Merge pull request #231 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Feb 18, 2025
8668d9f
Merge pull request #232 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
7c11cf2
Merge pull request #235 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
04c3187
build: bump prettier from 3.4.2 to 3.5.1 in /frontend
dependabot[bot] Feb 18, 2025
8405643
Merge pull request #233 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Feb 18, 2025
b356137
Update docker-build-and-push.yml
Harmanpreet-Microsoft Feb 24, 2025
f1eb8c7
Downgraded packages and fixed dependency issues to resolve compatibil…
Prasanjeet-Microsoft Feb 25, 2025
6fd8137
Merge pull request #240 from microsoft/PSL-US-14431
Roopan-Microsoft Feb 26, 2025
c26e9fc
Updated package-lock.json file
Prasanjeet-Microsoft Feb 26, 2025
27f4726
Merge branch 'dev' into dependabotchanges
Roopan-Microsoft Feb 26, 2025
1625633
package lock updated
Roopan-Microsoft Feb 26, 2025
53ce6ad
reverted app changes
AjitPadhi-Microsoft Feb 28, 2025
9e43743
Merge branch 'section-generate-fix' of https://github.com/microsoft/G…
AjitPadhi-Microsoft Feb 28, 2025
05c34cd
removed commented code
Roopan-Microsoft Mar 1, 2025
9d567a1
Merge branch 'dev' into section-generate-fix
Roopan-Microsoft Mar 1, 2025
bff481f
test case updated
Roopan-Microsoft Mar 1, 2025
41da683
test case updated
Roopan-Microsoft Mar 1, 2025
6b4d7bd
Merge pull request #242 from microsoft/section-generate-fix
Roopan-Microsoft Mar 1, 2025
0b58c31
build: bump undici from 5.28.5 to 7.4.0 in /frontend
dependabot[bot] Mar 1, 2025
7b4c945
build: bump eslint-config-prettier from 9.1.0 to 10.0.2 in /frontend
dependabot[bot] Mar 1, 2025
15c22be
build: bump globals from 15.15.0 to 16.0.0 in /frontend
dependabot[bot] Mar 1, 2025
e610cd1
build: bump react-markdown from 9.1.0 to 10.0.0 in /frontend
dependabot[bot] Mar 1, 2025
63a3066
build: bump react-router-dom from 6.29.0 to 7.2.0 in /frontend
dependabot[bot] Mar 1, 2025
a7b92f0
build: bump pydantic-settings from 2.7.1 to 2.8.1
dependabot[bot] Mar 1, 2025
72d6679
build: bump openai from 1.63.2 to 1.65.2
dependabot[bot] Mar 1, 2025
873d48d
build: bump isort from 6.0.0 to 6.0.1
dependabot[bot] Mar 1, 2025
dd4474a
build: bump aiohttp from 3.11.12 to 3.11.13
dependabot[bot] Mar 1, 2025
30cef2f
Merge pull request #255 from microsoft/dependabotchanges
Roopan-Microsoft Mar 3, 2025
860661f
Merge pull request #245 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Mar 3, 2025
b47b93f
Merge pull request #246 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Mar 3, 2025
d815353
Merge pull request #248 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Mar 3, 2025
bc8ac8b
Merge pull request #249 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Mar 3, 2025
039f2e6
Merge pull request #251 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Mar 3, 2025
29d6132
Merge pull request #252 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Mar 3, 2025
350f899
Merge pull request #253 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Mar 3, 2025
f27cfc7
Merge pull request #254 from microsoft/dependabot/pip/dependabotchang…
Roopan-Microsoft Mar 3, 2025
1d768c4
Merge pull request #250 from microsoft/dependabot/npm_and_yarn/fronte…
Roopan-Microsoft Mar 3, 2025
664c07d
azd folder structure
blessing-sanusi Mar 3, 2025
ca131be
updated package-lock.json and fixed frontend code issues
Prasanjeet-Microsoft Mar 4, 2025
c3ddd0f
Merge pull request #264 from microsoft/dependabotchanges
Roopan-Microsoft Mar 4, 2025
14bfdf0
deployment
blessing-sanusi Mar 5, 2025
db4c5f6
deployment and folder structure
blessing-sanusi Mar 6, 2025
d7a8dae
Merge pull request #266 from microsoft/azd-template1
blessing-sanusi Mar 6, 2025
1b8f779
infrastucture deployment json file deletion
blessing-sanusi Mar 6, 2025
93f8463
infrastucture deployment json file deletion
blessing-sanusi Mar 6, 2025
3aeaf85
Merge pull request #267 from microsoft/azd-template1
blessing-sanusi Mar 6, 2025
955c2c1
Updated Docker workflow to support main-image-migration branch and ad…
Harsh-Microsoft Mar 7, 2025
f55ece9
Refactor Docker workflow to streamline registry handling and improve …
Harsh-Microsoft Mar 7, 2025
b654c52
Update Docker workflow to conditionally handle registry settings and …
Harsh-Microsoft Mar 7, 2025
d557bf1
Update Docker workflow to remove main-image-migration branch referenc…
Harsh-Microsoft Mar 7, 2025
319beea
Update WebAppImageName variable to use new container registry and add…
Harsh-Microsoft Mar 7, 2025
14a72b5
Add files via upload
Roopan-Microsoft Mar 7, 2025
d3ce52c
Add files via upload
Roopan-Microsoft Mar 7, 2025
ed8c38a
Add files via upload
Roopan-Microsoft Mar 7, 2025
18b0d3c
Update container_registry_migration.md
Roopan-Microsoft Mar 7, 2025
822aa7f
updated docker workflow to push the image of main branch to internal …
Harsh-Microsoft Mar 7, 2025
4071e5d
Merge pull request #268 from microsoft/psl-acr-migration-doc
Roopan-Microsoft Mar 7, 2025
e44be19
Merge branch 'main' into dev
Roopan-Microsoft Mar 7, 2025
baeb7ca
Merge branch 'dev' into image-migration
Roopan-Microsoft Mar 7, 2025
6997017
Merge pull request #270 from microsoft/image-migration
Prajwal-Microsoft Mar 7, 2025
526cac8
biceps update
blessing-sanusi Mar 7, 2025
c01e274
biceps update
blessing-sanusi Mar 7, 2025
f6adc06
biceps update
blessing-sanusi Mar 10, 2025
21e4a38
biceps update
blessing-sanusi Mar 10, 2025
f0c987f
Merge branch 'dev' into doc-gen-bicep
blessing-sanusi Mar 10, 2025
27c93fb
Merge pull request #272 from microsoft/doc-gen-bicep
blessing-sanusi Mar 10, 2025
89968c9
Merge branch 'dev' into main-image-migration
Harsh-Microsoft Mar 11, 2025
b41bd8b
Merge pull request #1 from Harsh-Microsoft/main-image-migration
Harsh-Microsoft Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .azdo/pipelines/azure-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Run when commits are pushed to mainline branch (main or master)
# Set this to the mainline branch you are using
trigger:
- main
- master



pool:
vmImage: ubuntu-latest

steps:
- task: setup-azd@0
displayName: Install azd


- pwsh: |
azd config set auth.useAzCliAuth "true"
displayName: Configure AZD to Use AZ CLI Authentication.

- task: AzureCLI@2
displayName: Provision Infrastructure
inputs:
azureSubscription: azconnection
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
azd provision --no-prompt
env:

AZURE_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)
AZURE_ENV_NAME: $(AZURE_ENV_NAME)
AZURE_LOCATION: $(AZURE_LOCATION)

- task: AzureCLI@2
displayName: Deploy Application
inputs:
azureSubscription: azconnection
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
azd deploy --no-prompt
env:
AZURE_SUBSCRIPTION_ID: $(AZURE_SUBSCRIPTION_ID)
AZURE_ENV_NAME: $(AZURE_ENV_NAME)
AZURE_LOCATION: $(AZURE_LOCATION)
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ PROMPTFLOW_API_KEY=
PROMPTFLOW_RESPONSE_TIMEOUT=120
PROMPTFLOW_REQUEST_FIELD_NAME=query
PROMPTFLOW_RESPONSE_FIELD_NAME=reply
PROMPTFLOW_CITATIONS_FIELD_NAME=documents
PROMPTFLOW_CITATIONS_FIELD_NAME=documents
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @toherman-msft @hunterjam @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft @Vinay-Microsoft @malrose07
* @toherman-msft @hunterjam @Avijit-Microsoft @Roopan-Microsoft @Prajwal-Microsoft @Vinay-Microsoft @malrose07 @blessing-sanusi

34 changes: 34 additions & 0 deletions .github/workflows/azure-dev-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Azure Template Validation
on:
workflow_dispatch:

permissions:
contents: read
id-token: write
pull-requests: write

jobs:
template_validation_job:
runs-on: ubuntu-latest
name: Template validation

steps:
# Step 1: Checkout the code from your repository
- name: Checkout code
uses: actions/checkout@v4

# Step 2: Validate the Azure template using microsoft/template-validation-action
- name: Validate Azure Template
uses: microsoft/template-validation-action@v0.3.5
id: validation
env:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Step 3: Print the result of the validation
- name: Print result
run: cat ${{ steps.validation.outputs.resultFile }}
37 changes: 28 additions & 9 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Azure Container Registry
- name: Log in to Azure Container Registry - External Registry
if: ${{ github.ref_name == 'main' }}
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.ACR_LOGIN_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Log in to Azure Container Registry (Dev/Demo)
if: ${{ github.ref_name == 'dev' || github.ref_name == 'demo' }}
- name: Log in to Azure Container Registry (Main/Dev/Demo/Dependabotchanges) - Internal Registry
if: ${{ github.ref_name == 'main' ||github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.ACR_DEV_LOGIN_SERVER }}
Expand All @@ -46,7 +46,13 @@ jobs:

- name: Get registry
id: registry
run: echo "registry=${{ github.ref_name == 'main' && secrets.ACR_LOGIN_SERVER || secrets.ACR_DEV_LOGIN_SERVER }}" >> $GITHUB_OUTPUT
run: |
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "ext_registry=${{ secrets.ACR_LOGIN_SERVER }}" >> $GITHUB_OUTPUT
echo "int_registry=${{ secrets.ACR_DEV_LOGIN_SERVER }}" >> $GITHUB_OUTPUT
else
echo "int_registry=${{ secrets.ACR_DEV_LOGIN_SERVER }}" >> $GITHUB_OUTPUT
fi

- name: Determine Tag Name Based on Branch
id: determine_tag
Expand All @@ -57,17 +63,30 @@ jobs:
echo "tagname=dev" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref_name }}" == "demo" ]]; then
echo "tagname=demo" >> $GITHUB_OUTPUT
elif [[ "${{ github.ref_name }}" == "dependabotchanges" ]]; then
echo "tagname=dependabotchanges" >> $GITHUB_OUTPUT
else
echo "tagname=default" >> $GITHUB_OUTPUT

fi

- name: Build Docker Image and optionally push
- name: Build Docker Image and optionally push - Internal Registry
uses: docker/build-push-action@v6
with:
context: .
file: WebApp.Dockerfile
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'dependabotchanges' }}
tags: |
${{ steps.registry.outputs.int_registry }}/webapp:${{ steps.determine_tag.outputs.tagname }}
${{ steps.registry.outputs.int_registry }}/webapp:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }}

- name: Build Docker Image and optionally push - External Registry
if: ${{ github.ref_name == 'main' }}
uses: docker/build-push-action@v6
with:
context: .
file: WebApp.Dockerfile
push: ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' }}
push: ${{github.ref_name == 'main' }}
tags: |
${{ steps.registry.outputs.registry }}/webapp:${{ steps.determine_tag.outputs.tagname }}
${{ steps.registry.outputs.registry }}/webapp:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }}
${{ steps.registry.outputs.ext_registry }}/webapp:${{ steps.determine_tag.outputs.tagname }}
${{ steps.registry.outputs.ext_registry }}/webapp:${{ steps.determine_tag.outputs.tagname }}_${{ steps.date.outputs.date }}_${{ github.run_number }}

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ static
scripts/config.json
venv
myenv
frontend/coverage
frontend/coverage
scriptsenv/
74 changes: 73 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ For additional training and support, please see:
### Solution accelerator architecture
![image](/docs/images/architecture.png)

<h2><img src="./docs/Images/ReadMe/quickDeploy.png" width="64">
<br/>
QUICK DEPLOY
</h2>

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator)
[![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator)
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FGeneric-Build-your-own-copilot-Solution-Accelerator%2Fmain%2Finfra%2Fmain.json)


> Note: Some features contained in this repository are in private preview. Certain features might not be supported or might have constrained capabilities. For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/en-us/support/legal/preview-supplemental-terms).

Expand All @@ -66,7 +75,7 @@ https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-regi

2. Click the following deployment button to create the required resources for this accelerator in your Azure Subscription.

[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FGeneric-Build-your-own-copilot-Solution-Accelerator%2Fmain%2Finfrastructure%2Fdeployment.json)
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FGeneric-Build-your-own-copilot-Solution-Accelerator%2Fmain%2Finfra%2Fmain.json)

3. You will need to select an Azure Subscription, create/select a Resource group, and Region. If your intention is to deploy this solution accelerator and the corresponding sample data set, the default settings will suffice.

Expand All @@ -87,6 +96,69 @@ To add further access controls, update the logic in `getUserInfoList` in `fronte
1. **For enhanced relevance and accuracy**, we recommend implementing [Azure hybrid search](https://learn.microsoft.com/en-us/azure/search/hybrid-search-overview) over full-text search. Azure hybrid search provides superior relevance, accuracy, support for complex queries, improved user experience, scalability, performance, advanced features, and integration with AI services. These advantages make it the ideal choice for modern applications that require robust and intelligent search capabilities.
2. **Importance of prompt engineering**. Prompt engineering is a critical aspect of working with AI models, especially when leveraging advanced capabilities such as those provided by Azure AI services. Proper prompt engineering ensures that the AI models generate accurate, relevant, and contextually appropriate responses. It involves carefully crafting and refining prompts to guide the model's behavior and output effectively. Neglecting prompt engineering can result in suboptimal performance, irrelevant outputs, and increased frustration for users. Therefore, it is essential to invest time and effort in prompt engineering to fully harness the potential of AI models

### **Options**
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.

<details>
<summary><b>Deploy in GitHub Codespaces</b></summary>

### GitHub Codpespaces

You can run this solution accelerator virtually by using GitHub Codespaces. The button will open a web-based VS Code instance in your browser:

1. Open the solution accelerator (this may take several minutes):

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator)
2. Accept the default values on the create Codespaces page
3. Open a terminal window if it is not already open
4. Continue with the [deploying steps](#deploying)

</details>

<details>
<summary><b>Deploy in VS Code</b></summary>

### VS Code Dev Containers

A related option is VS Code Dev Containers, which will open the project in your local VS Code using the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers):

1. Start Docker Desktop (install it if not already installed)
2. Open the project:

[![Open in Dev Containers](https://img.shields.io/static/v1?style=for-the-badge&label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/Generic-Build-your-own-copilot-Solution-Accelerator)


3. In the VS Code window that opens, once the project files show up (this may take several minutes), open a terminal window.
4. Continue with the [deploying steps](#deploying)

</details>

<details>
<summary><b>Deploy in your local environment</b></summary>

### Local environment

If you're not using one of the above options for opening the project, then you'll need to:

1. Make sure the following tools are installed:

* [Azure Developer CLI (azd)](https://aka.ms/install-azd)
* [Python 3.9+](https://www.python.org/downloads/)
* [Docker Desktop](https://www.docker.com/products/docker-desktop/)
* [Git](https://git-scm.com/downloads)

2. Download the project code:

```shell
azd init -t microsoft/Generic-Build-your-own-copilot-Solution-Accelerator/
```

3. Open the project folder in your terminal or editor.

4. Continue with the [deploying steps](#deploying).

</details>

### Local deployment
Review the local deployment [README](./docs/README_LOCAL.md).
<br>
Expand Down
45 changes: 45 additions & 0 deletions app-azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json

name: sample-app-aoai-chatgpt
metadata:
template: sample-app-aoai-chatgpt@0.0.1-beta
services:
backend:
project: .
language: py
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: cd ./frontend;npm install;npm run build
interactive: true
continueOnError: false
posix:
shell: sh
run: cd ./frontend;npm install;npm run build
interactive: true
continueOnError: false
hooks:
preprovision:
windows:
shell: pwsh
run: ./scripts/auth_init.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/auth_init.sh
interactive: true
continueOnError: false
postprovision:
windows:
shell: pwsh
run: ./scripts/auth_update.ps1;
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/auth_update.sh;
interactive: true
continueOnError: false
65 changes: 21 additions & 44 deletions azure.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,22 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
environment:
name: BYC-Generic-Accelerator
location: eastus

name: sample-app-aoai-chatgpt
metadata:
template: sample-app-aoai-chatgpt@0.0.1-beta
services:
backend:
project: .
language: py
host: appservice
hooks:
prepackage:
windows:
shell: pwsh
run: cd ./frontend;npm install;npm run build
interactive: true
continueOnError: false
posix:
shell: sh
run: cd ./frontend;npm install;npm run build
interactive: true
continueOnError: false
hooks:
preprovision:
windows:
shell: pwsh
run: ./scripts/auth_init.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/auth_init.sh
interactive: true
continueOnError: false
postprovision:
windows:
shell: pwsh
run: ./scripts/auth_update.ps1;
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/auth_update.sh;
interactive: true
continueOnError: false
parameters:
solutionPrefix:
type: string
default: bs-azdtest
otherLocation:
type: string
default: eastus2
baseUrl:
type: string
default: 'https://github.com/blessing-sanusi/BYC-Generic-Accelerator'

deployment:
mode: Incremental
template: ./infra/main.bicep # Path to the main.bicep file inside the 'deployment' folder
parameters:
solutionPrefix: ${parameters.solutionPrefix}
otherLocation: ${parameters.otherLocation}
baseUrl: ${parameters.baseUrl}
Empty file added backend/__init__.py
Empty file.
Loading
Loading