Skip to content
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

psl main to main #111

Open
wants to merge 479 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
479 commits
Select commit Hold shift + click to select a range
2b7cf69
Merge branch 'main' into PSL-BUG-7014
Roopan-Microsoft Oct 11, 2024
6507a18
Merge pull request #6 from Prashant-Microsoft/main
Roopan-Microsoft Oct 11, 2024
08de05a
removed eslint file
Prashant-Microsoft Oct 11, 2024
396af58
removed unnecessory code for debug
Oct 11, 2024
e1de154
Merge pull request #13 from Roopan-Microsoft/psl-dev-remove-eslint
Roopan-Microsoft Oct 11, 2024
59e6a98
Merge pull request #10 from Roopan-Microsoft/PSL_BUG_8401
Roopan-Microsoft Oct 11, 2024
c96c40b
Merge pull request #3 from microsoft/PSL-BUG-7014
Roopan-Microsoft Oct 11, 2024
b54f7d8
Add answer test file
Oct 11, 2024
a47fe81
Merge branch 'PSL-US-7770-UnitTest' of https://github.com/microsoft/B…
Oct 11, 2024
148a0b8
UI - Unit test cases added for helpers and code clean up
Bangarraju-Microsoft Oct 11, 2024
5097c9b
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Bangarraju-Microsoft Oct 11, 2024
e4a5a8f
edits in answer test file
Oct 11, 2024
92f12f0
removed commented code
Bangarraju-Microsoft Oct 11, 2024
3019a85
Merge branch 'main' into PSL-US-7771-UT
Bangarraju-Microsoft Oct 11, 2024
c5ed67f
remove pylist error
Somesh-Microsoft Oct 11, 2024
aebe840
updated test scenario for ChatHistoryListItemCell
Mohan-Microsoft Oct 11, 2024
0794540
update pipeline
Somesh-Microsoft Oct 11, 2024
ef4508d
test5 cases for DraftDocumentsView
Oct 11, 2024
b595549
update the error
Somesh-Microsoft Oct 11, 2024
93480b4
Merge branch 'PSL-US-7770-UnitTest' of https://github.com/microsoft/B…
Oct 11, 2024
05d1f9b
Merge branch 'main' into psl-byo-bug7977
Himanshi-Mirosoft Oct 11, 2024
bef4a98
Use managed identity for cosmos db connection
Oct 11, 2024
5b70861
update error
Somesh-Microsoft Oct 11, 2024
f3d9033
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Mohan-Microsoft Oct 11, 2024
a7b69b3
coverage is added to git ignore
Mohan-Microsoft Oct 11, 2024
52408d7
Fixed failing test cases while running final coverage report
Mohan-Microsoft Oct 11, 2024
25dd1e0
added coverage in package
Mohan-Microsoft Oct 11, 2024
30540ec
commented failing test cases
Kiran-Siluveru-Microsoft Oct 11, 2024
5f9272b
Update pylint.yml
Roopan-Microsoft Oct 11, 2024
3898d72
Merge pull request #14 from Roopan-Microsoft/PSL-BUG-8988
Somesh-Microsoft Oct 11, 2024
513c139
Revert "Psl bug 8988"
Somesh-Microsoft Oct 11, 2024
1d88ce2
Merge pull request #15 from Roopan-Microsoft/revert-14-PSL-BUG-8988
Roopan-Microsoft Oct 11, 2024
ac190f2
disableLocalAuth
Oct 11, 2024
e250fa3
Merge pull request #11 from Roopan-Microsoft/PSL-testWorkflow
Roopan-Microsoft Oct 11, 2024
6a7e258
Removed test scenario in Card component
Bangarraju-Microsoft Oct 11, 2024
b754886
Merge branch 'PSL-US-7771-UT' of https://github.com/microsoft/Build-y…
Bangarraju-Microsoft Oct 11, 2024
9146cab
UI - Unit test cases added for new changes in UserCard
Bangarraju-Microsoft Oct 11, 2024
64d9add
removed interface
Bangarraju-Microsoft Oct 11, 2024
4b46af4
Merge pull request #5 from microsoft/psl-byo-bug7977
Roopan-Microsoft Oct 13, 2024
d5ed8b1
Update function_app.py
Roopan-Microsoft Oct 14, 2024
3d13276
Update function_app.py
Roopan-Microsoft Oct 14, 2024
fa7245d
Merge branch 'main' into PSL-US-7771-UT
Bangarraju-Microsoft Oct 14, 2024
848a990
Update UserCard.test.tsx
Bangarraju-Microsoft Oct 14, 2024
179952f
Merge pull request #17 from Roopan-Microsoft/psl_8041
Roopan-Microsoft Oct 14, 2024
9027fe3
resolved errors
Rohini-Microsoft Oct 14, 2024
6070962
installed undici
Rohini-Microsoft Oct 14, 2024
5623f66
removed uncovered testcases files
Rohini-Microsoft Oct 14, 2024
01f377b
updated pylint workflow
AjitPadhi-Microsoft Oct 14, 2024
ab728c4
excluding draftdocumentview from coverage
Rohini-Microsoft Oct 14, 2024
acec2be
updated pylint workflow
AjitPadhi-Microsoft Oct 14, 2024
ca682ec
fixed lint issue
AjitPadhi-Microsoft Oct 14, 2024
a51e05b
fixed lint issue
AjitPadhi-Microsoft Oct 14, 2024
f76ca6a
Merge pull request #20 from Roopan-Microsoft/PSL-8988
Roopan-Microsoft Oct 14, 2024
7eb7cc0
Merge branch 'main' into PSL-US-8935
Roopan-Microsoft Oct 14, 2024
45ae3fa
Merge branch 'main' into PSL-US-7771-UT
Roopan-Microsoft Oct 14, 2024
95790bd
Merge pull request #16 from Roopan-Microsoft/PSL-US-8935
Roopan-Microsoft Oct 14, 2024
7bcbf36
revert the changes in client ad
Rohini-Microsoft Oct 14, 2024
f66c2dd
Merge pull request #18 from microsoft/PSL-US-7771-UT
Roopan-Microsoft Oct 14, 2024
0cc2a3d
revert changes
Rohini-Microsoft Oct 14, 2024
b61a600
revert change
Rohini-Microsoft Oct 14, 2024
54625c4
revert
Rohini-Microsoft Oct 14, 2024
c0cbc95
revert
Rohini-Microsoft Oct 14, 2024
e0ef892
revert
Rohini-Microsoft Oct 14, 2024
cb22176
revert
Rohini-Microsoft Oct 14, 2024
435a41a
Update app.py
Rohini-Microsoft Oct 14, 2024
ab4e974
Merge branch 'main' into PSL-US-7770-UnitTest
Rohini-Microsoft Oct 14, 2024
c774a1b
Update app.py
Rohini-Microsoft Oct 14, 2024
808d388
Update app.py
Rohini-Microsoft Oct 14, 2024
967e4c7
lint error
Rohini-Microsoft Oct 14, 2024
324b2f2
revert
Rohini-Microsoft Oct 14, 2024
2fc379e
lint error fixed
Rohini-Microsoft Oct 14, 2024
e8ead87
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
9100b4d
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
d75fd74
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
adf3f69
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
46fa390
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
966bb42
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
35e8561
Update app.py
Roopan-Microsoft Oct 15, 2024
66267f1
Update app.py
Roopan-Microsoft Oct 15, 2024
5f94636
backend unit test added
AjitPadhi-Microsoft Oct 15, 2024
5178d78
updated test workflow
AjitPadhi-Microsoft Oct 15, 2024
1bb809c
updated test workflow
AjitPadhi-Microsoft Oct 15, 2024
3ede0b8
Update test_client_advisor.yml
Roopan-Microsoft Oct 15, 2024
b07a2eb
Merge pull request #22 from Roopan-Microsoft/PSL-8549
Roopan-Microsoft Oct 15, 2024
1756a97
Merge branch 'main' into psl-update-testworkflow
Roopan-Microsoft Oct 15, 2024
a92b304
Merge branch 'Roopan-Microsoft:main' into main
Avijit-Microsoft Oct 15, 2024
0d884b2
Update test_research_assistant.yml
Roopan-Microsoft Oct 15, 2024
37745f7
Merge branch 'main' of https://github.com/Roopan-Microsoft/psl-byo-ma…
Rohini-Microsoft Oct 16, 2024
f14a8d9
Disable shared access key authentication for storage account.
Oct 16, 2024
7cd739b
Update copy_kb_files.sh
Pavan-Microsoft Oct 16, 2024
98f0867
added test cases draftDocumentView
Rohini-Microsoft Oct 16, 2024
1da690a
Merge branch 'main' into PSL-US-7770-UnitTest
Rohini-Microsoft Oct 16, 2024
c0c7aa5
updated prompt flow version
Prashant-Microsoft Oct 17, 2024
b1292e5
Merge pull request #21 from Roopan-Microsoft/psl-update-testworkflow
Roopan-Microsoft Oct 17, 2024
aef33c3
modify code
Prashant-Microsoft Oct 17, 2024
258c77b
Merge branch 'main' into PSL-BUG-8506
Roopan-Microsoft Oct 17, 2024
2f41455
Merge pull request #23 from Roopan-Microsoft/PSL-BUG-8984
Roopan-Microsoft Oct 17, 2024
5c29ac8
Merge branch 'Roopan-Microsoft:main' into main
Avijit-Microsoft Oct 18, 2024
c2158e5
dependabot changes for pip directory
Avijit-Microsoft Oct 18, 2024
afcb495
Merge branch 'main' of https://github.com/Avijit-Microsoft/psl-byo-main
Avijit-Microsoft Oct 18, 2024
0f48cff
scheduled autodeployment twice a day
Prashant-Microsoft Oct 18, 2024
1635629
Merge pull request #26 from Roopan-Microsoft/PSL-BUG-8506
Prashant-Microsoft Oct 18, 2024
18fff4f
Merge pull request #28 from Roopan-Microsoft/autodeploy
Avijit-Microsoft Oct 21, 2024
0581dd6
Issue Fixed For Fork Branch
Oct 24, 2024
d679b93
test cases removed that was not needed
Oct 24, 2024
0562c11
Merge pull request #29 from Roopan-Microsoft/IssueWithFork
Himanshi-Mirosoft Oct 25, 2024
9835c35
updated base url
Prashant-Microsoft Oct 25, 2024
a19148e
Merge pull request #30 from Roopan-Microsoft/PSL-Task-9610
Prashant-Microsoft Oct 25, 2024
ab53323
Bug9231 fix and Chat.tsx Issue coming at time of getting response
Oct 26, 2024
0c67674
Removed unnecessary statement
Oct 26, 2024
fcd239a
Fixed 9231 bug
Oct 28, 2024
e8efa5c
Removed unnecessary Import statement
Oct 28, 2024
043a391
update prompt
Somesh-Microsoft Oct 28, 2024
ab9ba6c
Merge pull request #31 from Roopan-Microsoft/Bug9231-fix
Roopan-Microsoft Oct 28, 2024
828e119
"Updated AzureOpenAI API version, removed client investment risk tole…
Somesh-Microsoft Oct 29, 2024
9fc3d1c
Merge branch 'main' into PSL_BUG_8401
Somesh-Microsoft Oct 29, 2024
cb2e868
CI-CD pipeline
Priyanka-Microsoft Oct 30, 2024
5e7b20b
Resolving error for dockerfile
Priyanka-Microsoft Oct 30, 2024
aab672e
docker file path corrected
Priyanka-Microsoft Oct 30, 2024
042b627
ci pipeline
Priyanka-Microsoft Oct 30, 2024
3ac9f6a
Added listing files
Priyanka-Microsoft Oct 30, 2024
a4046d7
changed file path
Priyanka-Microsoft Oct 30, 2024
6de5b7a
changes
Priyanka-Microsoft Oct 31, 2024
0f84d21
Changes according to acceptance criteria
Priyanka-Microsoft Oct 31, 2024
ffcfdab
Changes after adding credential
Priyanka-Microsoft Oct 31, 2024
2763c83
Automating docker image
Priyanka-Microsoft Oct 31, 2024
259b239
github action updated
Priyanka-Microsoft Oct 31, 2024
9c3debc
changed dockerfile path
Priyanka-Microsoft Oct 31, 2024
9fe0eab
changed dockerfile path
Priyanka-Microsoft Oct 31, 2024
35839f2
changed dockerfile path1
Priyanka-Microsoft Oct 31, 2024
c49d9b5
Update package-lock.json to match package.json
Priyanka-Microsoft Oct 31, 2024
beaf0ec
dockerfile
Priyanka-Microsoft Oct 31, 2024
1497c5c
dockerfile
Priyanka-Microsoft Oct 31, 2024
721f28d
code changes
Priyanka-Microsoft Oct 31, 2024
74ee14c
dockerfile changes
Priyanka-Microsoft Oct 31, 2024
524c2e0
dockerfile changes
Priyanka-Microsoft Oct 31, 2024
6b0134a
added list the directory to debug
Priyanka-Microsoft Oct 31, 2024
4c80520
dockerfile path changes
Priyanka-Microsoft Oct 31, 2024
2d796a4
dockerfile path changes
Priyanka-Microsoft Oct 31, 2024
6414d46
dockerfile path changes
Priyanka-Microsoft Oct 31, 2024
a277c46
changes
Priyanka-Microsoft Oct 31, 2024
3f79960
updated json package
Priyanka-Microsoft Oct 31, 2024
149a003
Revert "updated json package"
Priyanka-Microsoft Oct 31, 2024
2349bce
updated json package
Priyanka-Microsoft Oct 31, 2024
9ad35d9
updated json package
Priyanka-Microsoft Oct 31, 2024
58203f5
updated json package
Priyanka-Microsoft Oct 31, 2024
21413e4
package updates
Priyanka-Microsoft Oct 31, 2024
cdae7a7
package updates
Priyanka-Microsoft Oct 31, 2024
807528b
Added codeowners file
Avijit-Microsoft Nov 1, 2024
ac564f4
Merge branch 'main' of https://github.com/Avijit-Microsoft/psl-byo-main
Avijit-Microsoft Nov 1, 2024
b724418
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
be921d9
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
8cf77d5
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
7a84c73
Update CODEOWNERS
Avijit-Microsoft Nov 1, 2024
c1368b9
changes locarion user node
Priyanka-Microsoft Nov 4, 2024
1bae672
added install jest statement
Priyanka-Microsoft Nov 4, 2024
09f5d32
Delete dependabot
Avijit-Microsoft Nov 4, 2024
c63886f
Merge branch 'main' of https://github.com/Avijit-Microsoft/psl-byo-main
Avijit-Microsoft Nov 4, 2024
9a1ac07
added research assistant code
Priyanka-Microsoft Nov 5, 2024
52c45ba
changed file name
Priyanka-Microsoft Nov 5, 2024
06c8478
Merge pull request #1 from Priyanka-Microsoft/feature/8534-build-dock…
Priyanka-Microsoft Nov 5, 2024
9fee974
Added password secret
Priyanka-Microsoft Nov 5, 2024
a93893d
to check the pipeline
Priyanka-Microsoft Nov 5, 2024
6535c63
to check the pipeline
Priyanka-Microsoft Nov 5, 2024
95706d4
update transcript prompt
Somesh-Microsoft Nov 5, 2024
f0c1634
Merge branch 'PSL_BUG_8401' of https://github.com/SomeshJoshi-Microso…
Somesh-Microsoft Nov 5, 2024
80a8dca
testing pipeline
Priyanka-Microsoft Nov 5, 2024
487dd12
assign cosmos contributor Role to appservice
Nov 6, 2024
7250e3d
Update the code as per PR raise
Somesh-Microsoft Nov 6, 2024
ceed905
Merge pull request #34 from Somesh-Microsoft/PSL_BUG_8401
Roopan-Microsoft Nov 6, 2024
0419d2e
Merge pull request #33 from Avijit-Microsoft/main
Avijit-Microsoft Nov 6, 2024
8f93274
Merge pull request #2 from Priyanka-Microsoft/feature/8534-pipeline-i…
Priyanka-Microsoft Nov 6, 2024
6ecf632
Merge branch 'Roopan-Microsoft:main' into main
Priyanka-Microsoft Nov 6, 2024
c35bb1b
Merge pull request #25 from Roopan-Microsoft/PSL-US-8935-MiStorage
Pavan-Microsoft Nov 7, 2024
0cc5b8f
Merge branch 'main' into PSL-US-8935-COSMOS
Pavan-Microsoft Nov 7, 2024
9e62593
Merge pull request #35 from Roopan-Microsoft/PSL-US-8935-COSMOS
Avijit-Microsoft Nov 7, 2024
6ddb09c
Changes as suggested by Roopan
Priyanka-Microsoft Nov 7, 2024
bcdc0fe
Merge pull request #3 from Priyanka-Microsoft/feature/8534-pipeline-i…
Priyanka-Microsoft Nov 7, 2024
807438e
ui changes removed
Priyanka-Microsoft Nov 7, 2024
7f84184
Merge pull request #36 from Priyanka-Microsoft/main
Pavan-Microsoft Nov 8, 2024
0ca093f
fix for inconsistent respose for count of call transcript
Nov 12, 2024
e85658d
removed load statement for local debug
Nov 12, 2024
2ccd31f
added code to purge the deployment resources for research assistant
Prashant-Microsoft Nov 13, 2024
2f1d4d4
reverted the temprature field and after making temprature 0 it was gi…
Nov 13, 2024
177059e
modify code
Prashant-Microsoft Nov 13, 2024
94fa02c
removed extra space
Nov 13, 2024
a5fbf30
Merge pull request #37 from Roopan-Microsoft/Bug10335
Roopan-Microsoft Nov 13, 2024
ea52fca
added code to purge the deployment resources for client advisor
Prashant-Microsoft Nov 13, 2024
3481430
Update Dockerfile
Roopan-Microsoft Nov 13, 2024
8bc9739
Merge pull request #41 from Roopan-Microsoft/psl-fix-docker
Roopan-Microsoft Nov 13, 2024
5d1f8cb
added retry mechanism for research assistant
Prashant-Microsoft Nov 15, 2024
d671562
added retry mechanism for client advisor
Prashant-Microsoft Nov 15, 2024
3a6fc19
modify code
Prashant-Microsoft Nov 15, 2024
b686b06
modify code
Prashant-Microsoft Nov 15, 2024
ba754f6
Merge pull request #39 from Roopan-Microsoft/PSL-PURGE-9915
Avijit-Microsoft Nov 15, 2024
94ad7a4
Merge pull request #40 from Roopan-Microsoft/PSL-PURGE-9916
Avijit-Microsoft Nov 15, 2024
80d031d
added env variable for research assistant
Prashant-Microsoft Nov 18, 2024
a25e558
added env variable for client advisor
Prashant-Microsoft Nov 18, 2024
69dfc43
Merge pull request #42 from Roopan-Microsoft/PSL-PURGE-9915
Roopan-Microsoft Nov 18, 2024
db9839c
Merge pull request #43 from Roopan-Microsoft/PSL-PURGE-9916
Roopan-Microsoft Nov 18, 2024
fc51edd
added dependabot file and branch sync file
Nov 18, 2024
91ca63b
edit
Nov 18, 2024
0912d4f
branch name change
Nov 18, 2024
10f72c5
edits
Nov 18, 2024
3594ad0
Merge pull request #45 from Harmanpreet-Microsoft/main
Roopan-Microsoft Nov 20, 2024
6d4e9d3
Merge remote-tracking branch 'upstream/main'
Roopan-Microsoft Nov 26, 2024
9e567a4
code updated
Roopan-Microsoft Nov 26, 2024
88b0e0e
code updated for extra spaces
Roopan-Microsoft Nov 26, 2024
672e39f
sync changes
Roopan-Microsoft Nov 26, 2024
5f92047
Space added/removed
Roopan-Microsoft Nov 26, 2024
fded061
code updated for space
Roopan-Microsoft Nov 26, 2024
6cf12ca
Added pylintrc and flake8 update
UtkarshMishra-Microsoft Nov 28, 2024
3bddeb5
added pylintrc
UtkarshMishra-Microsoft Nov 28, 2024
c92fce3
Resolved conflict in .flake8 file (identical content)
UtkarshMishra-Microsoft Nov 28, 2024
8e9d622
Merge branch 'main' into add-pylintrc
UtkarshMishra-Microsoft Nov 28, 2024
844856e
Merge pull request #49 from Roopan-Microsoft/add-pylintrc
UtkarshMishra-Microsoft Nov 28, 2024
6b18ca4
Revert "Add pylintrc"
UtkarshMishra-Microsoft Nov 28, 2024
db1c711
Merge pull request #50 from Roopan-Microsoft/revert-49-add-pylintrc
Roopan-Microsoft Nov 28, 2024
90b53fc
Added PULL_REQUEST_TEMPLATE.md for Client Advisor
UtkarshMishra-Microsoft Nov 29, 2024
e0f6d69
Merge branch 'main' into add-ClientAdvisor-Template
UtkarshMishra-Microsoft Nov 29, 2024
867d787
Added PULL_REQUEST_TEMPLATE.md for Research Assistant
UtkarshMishra-Microsoft Nov 29, 2024
285132c
Merge branch 'main' into add-ResearchAssitant-Template
UtkarshMishra-Microsoft Nov 29, 2024
8451229
converted .sh file to bicep deployemnt for function app
AjitPadhi-Microsoft Dec 2, 2024
e75cc10
Merge pull request #53 from Roopan-Microsoft/PSL-US-8618
Roopan-Microsoft Dec 4, 2024
53f825a
Revert "feat: Conversion of function app deployment using .sh file to…
AjitPadhi-Microsoft Dec 4, 2024
709f96c
Merge pull request #55 from Roopan-Microsoft/revert-53-PSL-US-8618
Roopan-Microsoft Dec 4, 2024
e11fe18
Update .gitignore to ignore .venv
UtkarshMishra-Microsoft Dec 4, 2024
8cc1420
Revert "Revert "feat: Conversion of function app deployment using .sh…
AjitPadhi-Microsoft Dec 4, 2024
7286a1c
Update
UtkarshMishra-Microsoft Dec 4, 2024
29f0c61
Update
UtkarshMishra-Microsoft Dec 4, 2024
e5e3d43
Add Research Assistant template and update workflow
UtkarshMishra-Microsoft Dec 4, 2024
d93206b
Add Research Assistant template and update workflow
UtkarshMishra-Microsoft Dec 4, 2024
7c4048b
Merge pull request #56 from Roopan-Microsoft/revert-55-revert-53-PSL-…
Roopan-Microsoft Dec 4, 2024
dc3bccd
Add Research Assistant template and update workflow
UtkarshMishra-Microsoft Dec 4, 2024
b926b14
Updated Template
UtkarshMishra-Microsoft Dec 5, 2024
cba91c8
Updated Template
UtkarshMishra-Microsoft Dec 5, 2024
efbd0d7
Updated Template
UtkarshMishra-Microsoft Dec 5, 2024
12b1b85
Merge pull request #52 from Roopan-Microsoft/add-ResearchAssitant-Tem…
UtkarshMishra-Microsoft Dec 6, 2024
b0516e4
Merge branch 'main' into add-ClientAdvisor-Template
UtkarshMishra-Microsoft Dec 6, 2024
2bf9725
Merge pull request #51 from Roopan-Microsoft/add-ClientAdvisor-Template
UtkarshMishra-Microsoft Dec 6, 2024
a825b3b
Update Template on Right Path and Remove Previous
UtkarshMishra-Microsoft Dec 6, 2024
78e1f19
Update Template on Right Path and Remove Previous
UtkarshMishra-Microsoft Dec 6, 2024
16bcaa0
Merge pull request #59 from Roopan-Microsoft/Update-Pull-Request-Temp…
Avijit-Microsoft Dec 6, 2024
caf6410
Merge https://github.com/Roopan-Microsoft/psl-byo-main into PSL-US-77…
Bangarraju-Microsoft Dec 9, 2024
fcca4a8
Added check ( missed in merge)
Bangarraju-Microsoft Dec 9, 2024
129407c
Merge pull request #19 from microsoft/PSL-US-7770-UnitTest
Roopan-Microsoft Dec 9, 2024
7bb7385
downmerge
Roopan-Microsoft Dec 23, 2024
cb58277
Merge branch 'main' of https://github.com/Roopan-Microsoft/psl-byo-main
Roopan-Microsoft Dec 23, 2024
02c9f1a
Update PULL_REQUEST_TEMPLATE.md
Roopan-Microsoft Dec 23, 2024
33cfe95
Update test_client_advisor.yml
Roopan-Microsoft Dec 23, 2024
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
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Verify that the following are valid
* ...

## Other Information
<!-- Add any other helpful information that may be needed here.. -->
<!-- Add any other helpful information that may be needed here.. -->
67 changes: 67 additions & 0 deletions .github/workflows/test_research_assistant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Unit Tests - Research Assistant

on:
push:
branches: main
paths:
- 'ResearchAssistant/**'
pull_request:
branches: main
types:
- opened
- ready_for_review
- reopened
- synchronize
paths:
- 'ResearchAssistant/**'

jobs:
test_research_assistant:
name: Research Assistant Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Backend Dependencies
run: |
cd ResearchAssistant/App
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install coverage pytest pytest-cov pytest-asyncio

- name: Run Backend Tests with Coverage
run: |
cd ResearchAssistant/App
python -m pytest -vv --disable-warnings --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --junitxml=coverage-junit.xml || true

- uses: actions/upload-artifact@v4
with:
name: research-assistant-coverage
path: |
ResearchAssistant/App/coverage.xml
ResearchAssistant/App/coverage-junit.xml
ResearchAssistant/App/htmlcov/
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '20'
# - name: Install Frontend Dependencies
# run: |
# cd ResearchAssistant/App/frontend
# npm install
# - name: Run Frontend Tests with Coverage
# run: |
# cd ResearchAssistant/App/frontend
# npm run test -- --coverage
# - uses: actions/upload-artifact@v4
# with:
# name: research-assistant-frontend-coverage
# path: |
# ResearchAssistant/App/frontend/coverage/
# ResearchAssistant/App/frontend/coverage/lcov-report/
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore

.venv/
# User-specific files
*.rsuser
*.suo
Expand Down
3 changes: 2 additions & 1 deletion ClientAdvisor/App/.flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[flake8]
max-line-length = 88
extend-ignore = E501, E203
exclude = .venv, frontend,
exclude = .venv, frontend

10 changes: 5 additions & 5 deletions ClientAdvisor/App/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,7 @@ async def stream_chat_request(request_body, request_headers):
if client_id is None:
return jsonify({"error": "No client ID provided"}), 400
query = request_body.get("messages")[-1].get("content")
query = query.strip()

async def generate():
deltaText = ""
Expand Down Expand Up @@ -1546,12 +1547,12 @@ def get_users():
ClientSummary,
CAST(LastMeeting AS DATE) AS LastMeetingDate,
FORMAT(CAST(LastMeeting AS DATE), 'dddd MMMM d, yyyy') AS LastMeetingDateFormatted,
FORMAT(LastMeeting, 'hh:mm tt') AS LastMeetingStartTime,
FORMAT(LastMeetingEnd, 'hh:mm tt') AS LastMeetingEndTime,
       FORMAT(LastMeeting, 'HH:mm ') AS LastMeetingStartTime,
FORMAT(LastMeetingEnd, 'HH:mm') AS LastMeetingEndTime,
CAST(NextMeeting AS DATE) AS NextMeetingDate,
FORMAT(CAST(NextMeeting AS DATE), 'dddd MMMM d, yyyy') AS NextMeetingFormatted,
FORMAT(NextMeeting, 'hh:mm tt') AS NextMeetingStartTime,
FORMAT(NextMeetingEnd, 'hh:mm tt') AS NextMeetingEndTime
FORMAT(NextMeeting, 'HH:mm') AS NextMeetingStartTime,
FORMAT(NextMeetingEnd, 'HH:mm') AS NextMeetingEndTime
FROM (
SELECT ca.ClientId, Client, Email, AssetValue, ClientSummary, LastMeeting, LastMeetingEnd, NextMeeting, NextMeetingEnd
FROM (
Expand Down Expand Up @@ -1584,7 +1585,6 @@ def get_users():
"""
cursor.execute(sql_stmt)
rows = cursor.fetchall()

if len(rows) <= 6:
# update ClientMeetings,Assets,Retirement tables sample data to current date
cursor = conn.cursor()
Expand Down
38 changes: 28 additions & 10 deletions ClientAdvisor/AzureFunction/function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# Azure Function App
app = func.FunctionApp(http_auth_level=func.AuthLevel.ANONYMOUS)


endpoint = os.environ.get("AZURE_OPEN_AI_ENDPOINT")
api_key = os.environ.get("AZURE_OPEN_AI_API_KEY")
api_version = os.environ.get("OPENAI_API_VERSION")
Expand Down Expand Up @@ -100,6 +101,16 @@ def get_SQL_Response(
Do not include assets values unless asked for.
Always use ClientId = {clientid} in the query filter.
Always return client name in the query.
If a question involves date and time, always use FORMAT(YourDateTimeColumn, 'yyyy-MM-dd HH:mm:ss') in the query.
If asked, provide information about client meetings according to the requested timeframe: give details about upcoming meetings if asked for "next" or "upcoming" meetings, and provide details about past meetings if asked for "previous" or "last" meetings including the scheduled time and don't filter with "LIMIT 1" in the query.
If asked about the number of past meetings with this client, provide the count of records where the ConversationId is neither null nor an empty string and the EndTime is before the current date in the query.
If asked, provide information on the client's portfolio performance in the query.
If asked, provide information about the client's top-performing investments in the query.
If asked, provide information about any recent changes in the client's investment allocations in the query.
If asked about the client's portfolio performance over the last quarter, calculate the total investment by summing the investment amounts where AssetDate is greater than or equal to the date from one quarter ago using DATEADD(QUARTER, -1, GETDATE()) in the query.
If asked about upcoming important dates or deadlines for the client, always ensure that StartTime is greater than the current date. Do not convert the formats of StartTime and EndTime and consistently provide the upcoming dates along with the scheduled times in the query.
To determine the asset value, sum the investment values for the most recent available date. If asked for the asset types in the portfolio and the present of each, provide a list of each asset type with its most recent investment value.
If the user inquires about asset on a specific date ,sum the investment values for the specific date avoid summing values from all dates prior to the requested date.If asked for the asset types in the portfolio and the value of each for specific date , provide a list of each asset type with specific date investment value avoid summing values from all dates prior to the requested date.
Only return the generated sql query. do not return anything else'''
try:

Expand Down Expand Up @@ -157,8 +168,11 @@ def get_answers_from_calltranscripts(

query = question
system_message = '''You are an assistant who provides wealth advisors with helpful information to prepare for client meetings.
You have access to the client’s meeting call transcripts.
You can use this information to answer questions about the clients'''
You have access to the client’s meeting call transcripts.
If requested for call transcript(s), the response for each transcript should be summarized separately and Ensure all transcripts for the specified client are retrieved and format **must** follow as First Call Summary,Second Call Summary etc.
if asked related to count of call transcripts,**Always** respond the total number of sourceurid involved for the {ClientId} consistently, Do never change if question is reframed or contains "so far" or if the case is altered or having first name or full name of the client present with so far or case altered with first name of the client or case altered with first name of client and so far.
You can use this information to answer questions about the clients
'''

completion = client.chat.completions.create(
model = deployment,
Expand All @@ -182,7 +196,6 @@ def get_answers_from_calltranscripts(
"parameters": {
"endpoint": search_endpoint,
"index_name": index_name,
"semantic_configuration": "default",
"query_type": "vector_simple_hybrid", #"vector_semantic_hybrid"
"fields_mapping": {
"content_fields_separator": "\n",
Expand Down Expand Up @@ -259,20 +272,25 @@ async def stream_openai_text(req: Request) -> StreamingResponse:
settings.max_tokens = 800
settings.temperature = 0

system_message = '''you are a helpful assistant to a wealth advisor.
# Read the HTML file
with open("table.html", "r") as file:
html_content = file.read()

system_message = '''you are a helpful assistant to a wealth advisor.
Do not answer any questions not related to wealth advisors queries.
If the client name and client id do not match, only return - Please only ask questions about the selected client or select another client to inquire about their details. do not return any other information.
Only use the client name returned from database in the response.
Always consider to give selected client full name only in response and do not use other example names also consider my client means currently selected client.
If you cannot answer the question, always return - I cannot answer this question from the data available. Please rephrase or add more details.
** Remove any client identifiers or ids or numbers or ClientId in the final response.
Client name **must be** same as retrieved from database.
Always return time in "HH:mm" format for the client in response.
'''

user_query = query.replace('?',' ')
system_message += html_content

user_query = query.replace('?','')

user_query_prompt = f'''{user_query}. Always send clientId as {user_query.split(':::')[-1]} '''
query_prompt = f'''<message role="system">{system_message}</message><message role="user">{user_query_prompt}</message>'''



sk_response = kernel.invoke_prompt_stream(
function_name="prompt_test",
plugin_name="weather_test",
Expand Down
11 changes: 11 additions & 0 deletions ClientAdvisor/AzureFunction/table.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- Include the table here -->
<table style="border: 1px solid #C8C6C4; width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 1em; font-family: Segoe UI">
<tr>
<th style="background-color: #F3F2F1; padding: 12px 15px; border: 1px solid #ddd; text-align: left;">Header 1</th>
<th style="background-color: #F3F2F1; padding: 12px 15px; border: 1px solid #ddd; text-align: left;">Header 2</th>
</tr>
<tr>
<td style="padding: 12px 15px; border: 1px solid #ddd; text-align: left; color:#797775;">Data 1</td>
<td style="padding: 12px 15px; border: 1px solid #ddd; text-align: left; color:#797775;">Data 2</td>
</tr>
</table>
149 changes: 149 additions & 0 deletions ClientAdvisor/Deployment/bicep/deploy_azure_function.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
@description('Specifies the location for resources.')
param solutionName string
param solutionLocation string
@secure()
param azureOpenAIApiKey string
param azureOpenAIApiVersion string
param azureOpenAIEndpoint string
@secure()
param azureSearchAdminKey string
param azureSearchServiceEndpoint string
param azureSearchIndex string
param sqlServerName string
param sqlDbName string
param sqlDbUser string
@secure()
param sqlDbPwd string
param functionAppVersion string

var functionAppName = '${solutionName}fn'
var azureOpenAIDeploymentModel = 'gpt-4'
var azureOpenAIEmbeddingDeployment = 'text-embedding-ada-002'
var valueOne = '1'

resource storageAccount 'Microsoft.Storage/storageAccounts@2021-04-01' = {
name: '${solutionName}fnstorage'
location: solutionLocation
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
properties: {
allowSharedKeyAccess: false
}
}

resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
name: 'workspace-${solutionName}'
location: solutionLocation
}

resource ApplicationInsights 'Microsoft.Insights/components@2020-02-02' = {
name: functionAppName
location: solutionLocation
kind: 'web'
properties: {
Application_Type: 'web'
publicNetworkAccessForIngestion: 'Enabled'
publicNetworkAccessForQuery: 'Enabled'
WorkspaceResourceId: logAnalyticsWorkspace.id
}
}

resource containerAppEnv 'Microsoft.App/managedEnvironments@2022-06-01-preview' = {
name: '${solutionName}env'
location: solutionLocation
sku: {
name: 'Consumption'
}
properties: {
appLogsConfiguration: {
destination: 'log-analytics'
logAnalyticsConfiguration: {
customerId: logAnalyticsWorkspace.properties.customerId
sharedKey: logAnalyticsWorkspace.listKeys().primarySharedKey
}
}
}
}

resource functionApp 'Microsoft.Web/sites@2024-04-01' = {
name: functionAppName
location: solutionLocation
kind: 'functionapp'
identity: {
type: 'SystemAssigned'
}
properties: {
managedEnvironmentId: containerAppEnv.id
siteConfig: {
linuxFxVersion: 'DOCKER|bycwacontainerreg.azurecr.io/byc-wa-fn:${functionAppVersion}'
appSettings: [
{
name: 'APPINSIGHTS_INSTRUMENTATIONKEY'
value: reference(ApplicationInsights.id, '2015-05-01').InstrumentationKey
}
{
name: 'AZURE_OPEN_AI_API_KEY'
value: azureOpenAIApiKey
}
{
name: 'AZURE_OPEN_AI_DEPLOYMENT_MODEL'
value: azureOpenAIDeploymentModel
}
{
name: 'AZURE_OPEN_AI_ENDPOINT'
value: azureOpenAIEndpoint
}
{
name: 'AZURE_OPENAI_EMBEDDING_DEPLOYMENT'
value: azureOpenAIEmbeddingDeployment
}
{
name: 'OPENAI_API_VERSION'
value: azureOpenAIApiVersion
}
{
name: 'AZURE_AI_SEARCH_API_KEY'
value: azureSearchAdminKey
}
{
name: 'AZURE_AI_SEARCH_ENDPOINT'
value: azureSearchServiceEndpoint
}
{
name: 'AZURE_SEARCH_INDEX'
value: azureSearchIndex
}
{
name: 'PYTHON_ENABLE_INIT_INDEXING'
value: valueOne
}
{
name: 'PYTHON_ISOLATE_WORKER_DEPENDENCIES'
value: valueOne
}
{
name: 'SQLDB_CONNECTION_STRING'
value: 'TBD'
}
{
name: 'SQLDB_SERVER'
value: sqlServerName
}
{
name: 'SQLDB_DATABASE'
value: sqlDbName
}
{
name: 'SQLDB_USERNAME'
value: sqlDbUser
}
{
name: 'SQLDB_PASSWORD'
value: sqlDbPwd
}
]
}
}
}
Loading
Loading