Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
2dbb0b1
ci: Updated workflow to handle main, dev and demo branch | Dependabot…
Roopan-Microsoft Nov 25, 2024
97ced9f
fix: SFI Fixes & scope reverted to subscription (#1513)
Roopan-Microsoft Nov 25, 2024
903c259
ci: workflow updated for build docker (#1514)
Roopan-Microsoft Nov 25, 2024
4cf2972
ci: build docker updated for dev (#1522)
Roopan-Microsoft Nov 25, 2024
9158819
ci: workflow branch code updated (#1525)
Roopan-Microsoft Nov 25, 2024
4545a48
updated comment
AjitPadhi-Microsoft Nov 25, 2024
84a33b5
updated workflow
AjitPadhi-Microsoft Nov 25, 2024
f8c1c8f
updated workflow
AjitPadhi-Microsoft Nov 25, 2024
e31a661
updated workflow
AjitPadhi-Microsoft Nov 26, 2024
847ce7e
updated bicep for registry
AjitPadhi-Microsoft Nov 26, 2024
8f8cc98
fixed bicep
AjitPadhi-Microsoft Nov 26, 2024
15b948c
fix: bicep updated (#1527)
AjitPadhi-Microsoft Nov 26, 2024
1645e43
Merge branch 'main' into dev
Roopan-Microsoft Nov 27, 2024
8df387a
Merge branch 'dev' of https://github.com/Azure-Samples/chat-with-your…
Roopan-Microsoft Nov 27, 2024
e4dd5f2
fix: Container issue fix for multiple branch (#1539)
AjitPadhi-Microsoft Nov 27, 2024
88d06dc
fix: Updated workflow (#1540)
AjitPadhi-Microsoft Nov 27, 2024
e5cf4dd
ci: Psl container fix for checkout code from head branch (#1541)
Roopan-Microsoft Nov 27, 2024
02d0056
fix: multiple container tag issue fix (#1552)
AjitPadhi-Microsoft Dec 9, 2024
90e1040
fix: Workflow issue fix on docker image (#1554)
AjitPadhi-Microsoft Dec 9, 2024
8a5a1cb
fix: Downmerge dev (#1566)
Pavan-Microsoft Dec 18, 2024
131c323
fix: CWYD Citation Links to Documents Break After Specific Timeframe …
Harmanpreet-Microsoft Dec 18, 2024
93b84ed
fix: Commit changes bug (#1568)
UtkarshMishra-Microsoft Dec 18, 2024
0875b92
fix: Post-Deployment Script for Managing Bicep Outputs in .env File …
Pavan-Microsoft Dec 19, 2024
76190b3
fix: import error in env_helper.py (#1571)
Pavan-Microsoft Dec 19, 2024
c65bf01
fix: add conversation flow in environment variable for adminweb app (…
Priyanka-Microsoft Dec 19, 2024
1f326d9
fix: Update Hosting Model Configuration in ARM/Bicep Template (#1570)
Prasanjeet-Microsoft Dec 19, 2024
fc688c2
fix: Update main.json for changes conversation flow changes in bicep …
Priyanka-Microsoft Dec 19, 2024
56adb59
Merge branch 'main' into dev
Roopan-Microsoft Dec 24, 2024
afaabdc
build: Dependabotchanges merge to Dev branch (#1602)
Roopan-Microsoft Dec 30, 2024
03f52b3
feat: Configurable System Prompts for Flexibility and Maintenance - C…
Pavan-Microsoft Dec 31, 2024
e92eba1
fix: Add Missing Logs (#1609)
Pavan-Microsoft Jan 2, 2025
b0860ee
commented the prompt flow in azure yaml file
Roopan-Microsoft Jan 3, 2025
983b1f7
Merge branches 'dev' and 'dev' of https://github.com/Azure-Samples/ch…
Roopan-Microsoft Jan 3, 2025
dae4043
Add execute permissions parse_env.sh in postprovision hook
Pavan-Microsoft Jan 3, 2025
08ad207
fix: Build issue with docker
Prajwal-Microsoft Jan 4, 2025
c49ddfd
Update build-docker.yml
Prajwal-Microsoft Jan 5, 2025
5994f99
fix: Docker file failure issue
Prajwal-Microsoft Jan 5, 2025
dc7b87c
fix: Response getting ']' brackets, it's inconsistent (#1611)
AjitPadhi-Microsoft Jan 6, 2025
2d1af79
fix: Fix Duplication of Flattened JSON Keys in .env File During Multi…
Pavan-Microsoft Jan 7, 2025
c553312
fix: Role Duplication Error in azd up Command for PostgreSQL (#1621)
Pavan-Microsoft Jan 10, 2025
8213f0a
Merge branch 'main' into dev
Roopan-Microsoft Jan 10, 2025
1f22786
feat: Remove AI search service for PostgreSQL configuration to optimi…
Prasanjeet-Microsoft Jan 13, 2025
7c2391c
feat: Implement Consistent Versioning and Tagging for Accelerator Ima…
Pavan-Microsoft Jan 15, 2025
8393614
Merge branch 'main' into dev
Roopan-Microsoft Jan 20, 2025
3789d45
fix: Warning message displayed twice in chat history update (#1630)
Pavan-Microsoft Jan 24, 2025
699dff8
test: unit test cases changes (#1353)
Kiran-Siluveru-Microsoft Jan 28, 2025
461779f
Update default.json
Roopan-Microsoft Feb 6, 2025
e0be943
Update default_contract_assistant_prompt.txt
Roopan-Microsoft Feb 6, 2025
f28ddc6
Update open_ai_functions.py
Roopan-Microsoft Feb 6, 2025
63ec389
Update build-docker.yml
Roopan-Microsoft Feb 6, 2025
e1d37f1
Update create_app.py
Roopan-Microsoft Feb 6, 2025
ec42447
Update test_conversation.py
Roopan-Microsoft Feb 6, 2025
86dd916
Update test_iv_question_answer_tool.py
Roopan-Microsoft Feb 6, 2025
b1f2615
Update test_response_with_search_documents_tool.py
Roopan-Microsoft Feb 6, 2025
3431205
Update test_conversation_flow.py
Roopan-Microsoft Feb 6, 2025
7025c6e
ci: update docker registry logic for main, dev, and demo branches (#1…
Priyanka-Microsoft Feb 7, 2025
8fca481
fix: Updates to change the Azure OpenAI model from `gpt-35-turbo` to …
Roopan-Microsoft Feb 13, 2025
18e1dca
docs: updated numerical queries section in best practices readme (#1670)
Harsh-Microsoft Feb 17, 2025
c13b4e3
Merge branch 'main' into dev
Roopan-Microsoft Feb 17, 2025
1ed3f43
fix: Admin configuration issue fix (#1676)
AjitPadhi-Microsoft Feb 18, 2025
f083af8
Merge branch 'main' into dev
Roopan-Microsoft Feb 19, 2025
32ebef3
build: Merge Dependabot Changes into Dev Branch (#1679)
Prasanjeet-Microsoft Feb 28, 2025
2803e48
Merge branch 'main' into dev
Roopan-Microsoft Mar 3, 2025
b5f35ac
Package lock updated
Roopan-Microsoft Mar 3, 2025
0b01abb
Merge remote-tracking branch 'origin/main' into dev
Prajwal-Microsoft Mar 4, 2025
21b57da
docs: Added migration readme file (#1668)
Priyanka-Microsoft Mar 4, 2025
6f30b3f
refactor: enforcing authentication based on environment variable "ENF…
Harsh-Microsoft Mar 24, 2025
9de26fd
build: Merge Dependabot Changes into Dev Branch (#1749)
Prasanjeet-Microsoft Apr 11, 2025
f7a2ce9
chore: Update Azure OpenAI Vision Model configuration to turbo-2024-0…
Harmanpreet-Microsoft Apr 15, 2025
dc763c2
feat: json document processor (#1661)
cristofima Apr 16, 2025
9664143
fix: Resolve chunking issue during deployment when enabling advanced …
Priyanka-Microsoft Apr 21, 2025
e8382d3
Merge branch 'main' into dev
Roopan-Microsoft May 5, 2025
4f09b12
fix: bug(#1653) added tooltip for chat history items. (#1785)
Bangarraju-Microsoft May 6, 2025
c7f3e8d
build: Add .dockerignore to optimize Docker build context (#1790)
Prasanjeet-Microsoft May 6, 2025
cea820d
fix: Updated reset configuration to use dialog instead of popover whi…
Vamshi-Microsoft May 9, 2025
5d79d5d
refactor: centralize Azure resource naming with abbreviations.json an…
Harmanpreet-Microsoft May 12, 2025
a9d8511
fix: Changed the button label from "Reset Now" to "Reset" (#1796)
Vamshi-Microsoft May 13, 2025
88caa69
Merge branch 'main' into dev
Roopan-Microsoft May 22, 2025
5383461
main json updated
Roopan-Microsoft May 22, 2025
86ebab4
fix: hardcoded abbreviations in bicep (#1805)
Harsh-Microsoft May 22, 2025
03606b7
fix: Enhance Bicep Outputs for Environment Variable Configuration in …
Prasanjeet-Microsoft May 29, 2025
7ae4b79
fix: Add Cosmos DB Account Key Output for Environment Configuration (…
Prasanjeet-Microsoft May 29, 2025
69669bb
fix: error in 'Process and Ingest Web Pages' under 'Add URLs to the K…
Priyanka-Microsoft Jun 2, 2025
464139c
test: Migrate test automation scripts, llm evaluator and pipeline for…
Harsh-Microsoft Jun 3, 2025
27211e9
ci: configuration to include optional arguments for running tests dur…
Harsh-Microsoft Jun 3, 2025
4fec5b7
Merge branch 'main' into dev
Prasanjeet-Microsoft Jun 3, 2025
b3fcae0
test: add citation link interaction support to e2e tests (#1821)
Harmanpreet-Microsoft Jun 4, 2025
f075a9b
chore: update default OpenAI model to gpt-4.1 across codebase and inf…
Harmanpreet-Microsoft Jun 10, 2025
edb03ab
feat: Down merge from dev & resolved conflicts (#1826)
Prajwal-Microsoft Jun 11, 2025
7f4a427
feat: EXP Changes to reuse existing resource group and Log analytics …
Prajwal-Microsoft Jun 11, 2025
74e1d6c
feat: rebuilt main.json
Prajwal-Microsoft Jun 12, 2025
eccd758
Merge branch 'main' into dev
Roopan-Microsoft Jun 16, 2025
fedee97
test: Implement Log execution time per prompt in Report for CWYD (#1832)
Rohini-Microsoft Jun 19, 2025
c5be551
Merge branch 'main' into dev
Roopan-Microsoft Jun 19, 2025
fc4e2a2
feat: Add Broken Link Checker workflow for Markdown files (#1834)
Vamshi-Microsoft Jun 20, 2025
685e56f
fix: add missing 'text' and 'layoutText' fields for Azure Search inte…
Prasanjeet-Microsoft Jun 26, 2025
a9bd530
Merge branch 'main' into dev
Roopan-Microsoft Jun 30, 2025
7435501
main json updated
Roopan-Microsoft Jun 30, 2025
21d3aef
fix: Only support RBAC with authenticate using managed identity (#1857)
AjitPadhi-Microsoft Jul 14, 2025
fc269f5
ci: refactor deployment workflow to include dynamic URL outputs, e2e …
Harmanpreet-Microsoft Jul 14, 2025
400d1f8
fix: Oneclick deployment issue fix (#1859)
AjitPadhi-Microsoft Jul 14, 2025
049836a
fix: Remove Exposed Speech Service API Key from Network Calls (#1869)
Prasanjeet-Microsoft Jul 28, 2025
0bd33ec
fix: onclick deployment issue fix (#1870)
AjitPadhi-Microsoft Jul 29, 2025
59efafe
chore: update Python and JavaScript dependencies for compatibility a…
Harmanpreet-Microsoft Aug 14, 2025
b536feb
Merge branch 'main' into dev
Roopan-Microsoft Aug 18, 2025
c9d4a23
Updated main json file
Roopan-Microsoft Aug 18, 2025
c69198f
refactor: make principal type optional in role assignments and clean …
Harmanpreet-Microsoft Aug 20, 2025
a4e4d4a
Update deploy_create_table_script.bicep
Roopan-Microsoft Aug 21, 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
286 changes: 257 additions & 29 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/comment_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
return response.data[0]?.number ?? "";
retries: 3
- name: Comment coverage
uses: MishaKav/pytest-coverage-comment@81882822c5b22af01f91bd3eacb1cefb6ad73dc2
uses: MishaKav/pytest-coverage-comment@13d3c18e21895566c746187c9ea74736372e5e91
with:
pytest-xml-coverage-path: coverage.xml
junitxml-path: coverage-junit.xml
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/test-automation.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Test Automation CWYD
on:
push:
branches:
- main
- dev
paths:
- 'tests/e2e-test/**'
schedule:
- cron: '0 13 * * 3' # Runs at 1 PM UTC once a week on Wednesday
workflow_dispatch:
workflow_call:
inputs:
web_url:
required: true
type: string
admin_url:
required: true
type: string

env:
web_url: ${{ vars.CWYD_WEB_URL }}
admin_url: ${{ vars.CWYD_ADMIN_URL }}
accelerator_name: "Chat with your Data"

jobs:
test:
runs-on: ubuntu-latest
env:
web_url: ${{ inputs.web_url }}
admin_url: ${{ inputs.admin_url }}
accelerator_name: "Chat with your Data"

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.13'

Expand Down
108 changes: 104 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,114 @@ azd-login: ## 🔑 Login to Azure with azd and a SPN
@echo -e "\e[34m$@\e[0m" || true
@azd auth login --client-id ${AZURE_CLIENT_ID} --client-secret ${AZURE_CLIENT_SECRET} --tenant-id ${AZURE_TENANT_ID}

deploy: azd-login ## 🚀 Deploy everything to Azure
azd-login: ## 🔑 Login to Azure with azd and a SPN
@echo -e "\e[34m$@\e[0m" || true
@azd auth login --client-id ${AZURE_CLIENT_ID} --client-secret ${AZURE_CLIENT_SECRET} --tenant-id ${AZURE_TENANT_ID}

# Fixed Makefile section for deploy target
# Fixed Makefile section for deploy target
deploy: azd-login ## Deploy everything to Azure
@echo -e "\e[34m$@\e[0m" || true
@azd env new ${AZURE_ENV_NAME}
@azd env set AZURE_APP_SERVICE_HOSTING_MODEL code --no-prompt

# Provision and deploy
@azd provision --no-prompt
@azd deploy web --no-prompt
@azd deploy function --no-prompt
@azd deploy web --no-prompt || true
@azd deploy function --no-prompt || true
@azd deploy adminweb --no-prompt
@azd env get-values > .env.temp
@cat .env.temp

@sleep 30
@azd show --output json > deploy_output.json || echo "{}" > deploy_output.json
@echo "=== deploy_output.json contents ==="
@cat deploy_output.json | jq . || cat deploy_output.json

# Extract URLs
@echo "=== Extracting URLs using multiple methods ==="
@azd show 2>&1 | tee full_deployment_output.log
@jq -r '.services.web?.project?.hostedEndpoints?[0]?.url // ""' deploy_output.json > frontend_url.txt || echo "" > frontend_url.txt
@jq -r '.services.adminweb?.project?.hostedEndpoints?[0]?.url // ""' deploy_output.json > admin_url.txt || echo "" > admin_url.txt
@grep -oE "https://app-[a-zA-Z0-9-]*\.azurewebsites\.net/" full_deployment_output.log | grep -v admin | head -1 >> frontend_url.txt || true
@grep -oE "https://app-[a-zA-Z0-9-]*-admin\.azurewebsites\.net/" full_deployment_output.log | head -1 >> admin_url.txt || true
@sort frontend_url.txt | uniq | grep -v '^$$' | head -1 > frontend_url_clean.txt && mv frontend_url_clean.txt frontend_url.txt || echo "" > frontend_url.txt
@sort admin_url.txt | uniq | grep -v '^$$' | head -1 > admin_url_clean.txt && mv admin_url_clean.txt admin_url.txt || echo "" > admin_url.txt

@echo "=== URL Extraction Results ==="
@FRONTEND_URL=$$(cat frontend_url.txt 2>/dev/null | tr -d '\n\r' | xargs); \
ADMIN_URL=$$(cat admin_url.txt 2>/dev/null | tr -d '\n\r' | xargs); \
echo "Frontend URL: $$FRONTEND_URL"; \
echo "Admin URL: $$ADMIN_URL"

@echo "=== Final Deployment Status ==="
@echo "Frontend URL:" && cat frontend_url.txt || echo "Not available"
@echo "Admin URL:" && cat admin_url.txt || echo "Not available"
@echo ""
@echo "🚀 Deployment completed!"
@echo "⏰ Authentication will be disabled via GitHub Actions pipeline."
@echo "🔄 Check the pipeline logs for authentication disable status."
@echo "=== Extracting PostgreSQL Host Endpoint ==="
@azd env get-values > .env.temp 2>/dev/null || echo "" > .env.temp

@PG_HOST_VAL=$$(grep '^AZURE_POSTGRESQL_HOST_NAME=' .env.temp | cut -d'=' -f2 | tr -d '"' | xargs); \
if [ -z "$$PG_HOST_VAL" ]; then \
echo "❌ PostgreSQL host not found in .env.temp. Using fallback localhost"; \
PG_HOST_VAL="localhost"; \
else \
echo "✅ PostgreSQL host extracted from .env.temp: $$PG_HOST_VAL"; \
fi; \
echo "$$PG_HOST_VAL" > pg_host.txt





@echo "=== PostgreSQL Configuration ==="
@echo "Username: admintest (hardcoded)"
@echo "Database: postgres (hardcoded)"
@echo "Port: 5432 (hardcoded)"
@echo "Host: $$(cat pg_host.txt 2>/dev/null || echo 'Not available')"
@echo "Password: Initial_0524 (hardcoded)"

# Helper target to check current authentication status
check-auth:
@echo "=== Checking Authentication Status ==="
@FRONTEND_URL=$$(cat frontend_url.txt 2>/dev/null | tr -d '\n\r' | xargs); \
ADMIN_URL=$$(cat admin_url.txt 2>/dev/null | tr -d '\n\r' | xargs); \
if [ -n "$$FRONTEND_URL" ]; then \
echo "Testing Frontend: $$FRONTEND_URL"; \
HTTP_CODE=$$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 10 "$$FRONTEND_URL" 2>/dev/null || echo "000"); \
echo "Frontend HTTP Status: $$HTTP_CODE"; \
fi; \
if [ -n "$$ADMIN_URL" ]; then \
echo "Testing Admin: $$ADMIN_URL"; \
HTTP_CODE=$$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 10 "$$ADMIN_URL" 2>/dev/null || echo "000"); \
echo "Admin HTTP Status: $$HTTP_CODE"; \
fi

# Helper target to manually disable authentication (for debugging)
disable-auth-manual:
@echo "=== Manually Disabling Authentication ==="
@echo "This target requires Azure CLI to be logged in manually"
@FRONTEND_URL=$$(cat frontend_url.txt 2>/dev/null | tr -d '\n\r' | xargs); \
ADMIN_URL=$$(cat admin_url.txt 2>/dev/null | tr -d '\n\r' | xargs); \
export FRONTEND_WEBSITE_URL="$$FRONTEND_URL"; \
export ADMIN_WEBSITE_URL="$$ADMIN_URL"; \
if [ -f "disable_auth.sh" ]; then \
chmod +x disable_auth.sh && ./disable_auth.sh; \
else \
echo "ERROR: disable_auth.sh not found"; \
exit 1; \
fi

disable-auth-fixed:
@echo "=== Using Fixed Authentication Disable Script ==="
@if [ -f "disable_auth_fixed.sh" ]; then \
chmod +x disable_auth_fixed.sh && ./disable_auth_fixed.sh; \
else \
echo "ERROR: disable_auth_fixed.sh not found"; \
exit 1; \
fi

destroy: azd-login ## 🧨 Destroy everything in Azure
@echo -e "\e[34m$@\e[0m" || true
Expand Down
5 changes: 3 additions & 2 deletions code/backend/batch/utilities/helpers/env_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def __load_config(self, **kwargs) -> None:
"Unsupported DATABASE_TYPE. Please set DATABASE_TYPE to 'CosmosDB' or 'PostgreSQL'."
)

self.AZURE_AUTH_TYPE = os.getenv("AZURE_AUTH_TYPE", "keys")
self.AZURE_AUTH_TYPE = os.getenv("AZURE_AUTH_TYPE", "rbac")
# Azure OpenAI
self.AZURE_OPENAI_RESOURCE = os.getenv("AZURE_OPENAI_RESOURCE", "")
# Fetch AZURE_OPENAI_MODEL_INFO from environment
Expand Down Expand Up @@ -234,6 +234,7 @@ def __load_config(self, **kwargs) -> None:
self.AZURE_COMPUTER_VISION_VECTORIZE_IMAGE_MODEL_VERSION = os.getenv(
"AZURE_COMPUTER_VISION_VECTORIZE_IMAGE_MODEL_VERSION", "2023-04-15"
)
self.FUNCTION_KEY = os.getenv("FUNCTION_KEY", "")

# Initialize Azure keys based on authentication type and environment settings.
# When AZURE_AUTH_TYPE is "rbac", azure keys are None or an empty string.
Expand All @@ -242,6 +243,7 @@ def __load_config(self, **kwargs) -> None:
self.AZURE_OPENAI_API_KEY = ""
self.AZURE_SPEECH_KEY = None
self.AZURE_COMPUTER_VISION_KEY = None
self.FUNCTION_KEY = self.secretHelper.get_secret("FUNCTION_KEY")
else:
self.AZURE_SEARCH_KEY = self.secretHelper.get_secret("AZURE_SEARCH_KEY")
self.AZURE_OPENAI_API_KEY = self.secretHelper.get_secret(
Expand Down Expand Up @@ -269,7 +271,6 @@ def __load_config(self, **kwargs) -> None:
os.environ["OPENAI_API_VERSION"] = self.OPENAI_API_VERSION
# Azure Functions - Batch processing
self.BACKEND_URL = os.getenv("BACKEND_URL", "http://localhost:7071")
self.FUNCTION_KEY = os.getenv("FUNCTION_KEY")
self.AzureWebJobsStorage = os.getenv("AzureWebJobsStorage", "")
self.DOCUMENT_PROCESSING_QUEUE_NAME = os.getenv(
"DOCUMENT_PROCESSING_QUEUE_NAME", "doc-processing"
Expand Down
6 changes: 5 additions & 1 deletion code/create_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ def conversation_with_data(conversation: Request, env_helper: EnvHelper):
env_helper.AZURE_SEARCH_CONTENT_VECTOR_COLUMN
],
"title_field": env_helper.AZURE_SEARCH_TITLE_COLUMN or None,
"source_field": env_helper.AZURE_SEARCH_SOURCE_COLUMN
or None,
"text_field": env_helper.AZURE_SEARCH_TEXT_COLUMN or None,
"layoutText_field": env_helper.AZURE_SEARCH_LAYOUT_TEXT_COLUMN
or None,
"url_field": env_helper.AZURE_SEARCH_FIELDS_METADATA
or None,
"filepath_field": (
Expand Down Expand Up @@ -521,7 +526,6 @@ def speech_config():
if response.status_code == 200:
return {
"token": response.text,
"key": speech_key,
"region": env_helper.AZURE_SPEECH_SERVICE_REGION,
"languages": env_helper.AZURE_SPEECH_RECOGNIZER_LANGUAGES,
}
Expand Down
Loading
Loading