Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
96 commits
Select commit Hold shift + click to select a range
7de6367
Update task_query_response.prompty
nagkumar91 Oct 1, 2024
f288b34
Update task_simulate.prompty
nagkumar91 Oct 1, 2024
2a4b6f7
Update task_query_response.prompty
nagkumar91 Oct 2, 2024
c8ce251
Update task_simulate.prompty
nagkumar91 Oct 2, 2024
4522ae4
Merge branch 'Azure:main' into main
nagkumar91 Oct 3, 2024
32e9c1d
Merge branch 'Azure:main' into main
nagkumar91 Oct 7, 2024
76df69d
Merge branch 'Azure:main' into main
nagkumar91 Oct 8, 2024
aeddcb4
Merge branch 'Azure:main' into main
nagkumar91 Oct 8, 2024
65a759c
Merge branch 'Azure:main' into main
nagkumar91 Oct 9, 2024
e4cdd30
Fix the api_key needed
Oct 9, 2024
e3ab026
Merge branch 'Azure:main' into main
nagkumar91 Oct 11, 2024
4fb09c4
Merge branch 'Azure:main' into main
nagkumar91 Oct 15, 2024
e71a52d
Merge branch 'Azure:main' into main
nagkumar91 Oct 15, 2024
87166b3
Merge branch 'Azure:main' into main
nagkumar91 Oct 16, 2024
b478651
Update for release
nagkumar91 Oct 16, 2024
8e5a264
Black fix for file
nagkumar91 Oct 16, 2024
2077d6d
Merge branch 'Azure:main' into main
nagkumar91 Oct 17, 2024
3ab59c8
Merge branch 'Azure:main' into main
nagkumar91 Oct 17, 2024
3a80606
Add original text in global context
Oct 17, 2024
6768f9a
Update test
Oct 17, 2024
f7cc4bb
Update the indirect attack simulator
Oct 18, 2024
07eb466
Black suggested fixes
Oct 18, 2024
942bfd5
Update simulator prompty
Oct 18, 2024
2d4c376
Merge branch 'main' into main
nagkumar91 Oct 18, 2024
98cad97
Update adversarial scenario enum to exclude XPIA
Oct 18, 2024
d510316
Update changelog
Oct 18, 2024
742943e
Black fixes
Oct 18, 2024
12e0615
Remove duplicate import
Oct 18, 2024
de32b50
Fix the mypy error
Oct 19, 2024
4b64132
Mypy please be happy
Oct 21, 2024
1c0b4dd
Updates to non adv simulator
Oct 22, 2024
c4f9111
Merge branch 'Azure:main' into main
nagkumar91 Oct 22, 2024
6de617c
accept context from assistant messages, exclude them when using them …
Oct 23, 2024
1e5d40c
update changelog
Oct 23, 2024
93b29c7
pylint fixes
Oct 23, 2024
8e3ddc3
pylint fixes
Oct 23, 2024
31e0d29
Merge branch 'main' into main
nagkumar91 Oct 23, 2024
4ccc7c8
remove redundant quotes
Oct 23, 2024
bed5196
Fix typo
Oct 23, 2024
0fdd644
pylint fix
Oct 23, 2024
1f695cc
Update broken tests
Oct 23, 2024
3da3a94
Merge branch 'main' into main
nagkumar91 Oct 23, 2024
56c2657
Merge branch 'Azure:main' into main
nagkumar91 Oct 23, 2024
b04b3e6
Merge branch 'Azure:main' into main
nagkumar91 Oct 24, 2024
b9793ca
Merge branch 'Azure:main' into main
nagkumar91 Oct 25, 2024
92c9a6d
Include the grounding json in the manifest
Oct 25, 2024
0673cd5
Fix typo
Oct 25, 2024
7b360fc
Come on package
Oct 25, 2024
e3fd2bb
Merge branch 'Azure:main' into main
nagkumar91 Oct 28, 2024
c9f38c9
Release 1.0.0b5
Oct 28, 2024
bbb78fd
Merge branch 'main' of https://github.com/nagkumar91/azure-sdk-for-py…
Oct 28, 2024
ed7eed1
Notice from Chang
Oct 28, 2024
103f397
Merge branch 'Azure:main' into main
nagkumar91 Oct 28, 2024
3de5b66
Remove adv_conv template parameters from the outputs
Oct 28, 2024
21e3551
Merge branch 'main' of https://github.com/nagkumar91/azure-sdk-for-py…
Oct 28, 2024
78df8c9
Merge branch 'Azure:main' into main
nagkumar91 Oct 28, 2024
2b693bc
Merge branch 'Azure:main' into main
nagkumar91 Oct 29, 2024
f2e95d1
Update chanagelog
Oct 29, 2024
20b6d47
Merge branch 'Azure:main' into main
nagkumar91 Oct 29, 2024
a920c28
Merge branch 'main' of https://github.com/nagkumar91/azure-sdk-for-py…
Oct 29, 2024
f9ac10c
Experimental tags on adv scenarios
Oct 29, 2024
b570a51
Merge branch 'Azure:main' into main
nagkumar91 Oct 30, 2024
6c81cbb
Readme fix onbreaking change
Oct 30, 2024
b48f8ab
Add the category and both user and assistant context to the response …
Oct 30, 2024
d422e05
Update changelog
Oct 30, 2024
de105db
Merge branch 'Azure:main' into main
nagkumar91 Oct 30, 2024
d9b80f7
Merge branch 'Azure:main' into main
nagkumar91 Nov 4, 2024
04823fd
Merge branch 'Azure:main' into main
nagkumar91 Nov 5, 2024
988f2ad
Merge branch 'Azure:main' into main
nagkumar91 Nov 7, 2024
fb12fdd
Rename _kwargs to _options
Nov 7, 2024
d912c52
_options as prefix
Nov 7, 2024
059e767
update troubleshooting for simulator
Nov 7, 2024
f91228f
Rename according to suggestions
Nov 7, 2024
e660918
Merge branch 'Azure:main' into main
nagkumar91 Nov 7, 2024
5ad5a26
Merge branch 'Azure:main' into main
nagkumar91 Nov 11, 2024
cde740c
Clean up readme
Nov 11, 2024
a90c788
more links
Nov 11, 2024
11cf0ba
Merge branch 'Azure:main' into main
nagkumar91 Nov 14, 2024
3050ce7
Merge branch 'Azure:main' into main
nagkumar91 Nov 18, 2024
ae461cc
Merge branch 'Azure:main' into main
nagkumar91 Nov 20, 2024
035881e
Merge branch 'Azure:main' into main
nagkumar91 Nov 22, 2024
87c871c
Merge branch 'Azure:main' into main
nagkumar91 Nov 26, 2024
a1519dd
Merge branch 'Azure:main' into main
nagkumar91 Dec 2, 2024
3ad53d5
Bugfix: zip_longest created null parameters
Dec 2, 2024
e9f3241
Updated changelog
Dec 2, 2024
79c2f0d
zip does the job
Dec 2, 2024
a0bc930
remove ununsed import
Dec 3, 2024
32b15eb
Merge branch 'Azure:main' into main
nagkumar91 Dec 9, 2024
19c4ea1
Merge branch 'Azure:main' into main
nagkumar91 Dec 11, 2024
95052bd
Merge branch 'Azure:main' into main
nagkumar91 Dec 12, 2024
30daf90
Update simulator to work with task free mode
Dec 12, 2024
f9c7855
Update changelog
Dec 12, 2024
ebbf861
black fixes
Dec 12, 2024
a03abdf
Merge branch 'Azure:main' into main
nagkumar91 Dec 17, 2024
aed3373
Merge branch 'main' into simulator_task_free_mode
Dec 17, 2024
814deb7
Update CHANGELOG.md
nagkumar91 Dec 18, 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
3 changes: 3 additions & 0 deletions sdk/evaluation/azure-ai-evaluation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
### Breaking Changes

### Bugs Fixed
- Removed `[remote]` extra. This is no longer needed when tracking results in Azure AI Studio.
- Fixed `AttributeError: 'NoneType' object has no attribute 'get'` while running simulator with 1000+ results
- Fixed the non adversarial simulator to run in task-free mode

### Other Changes

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ async def __call__(
f"You have specified 'num_queries' < len('tasks') ({num_queries} < {len(tasks)}). "
f"Only the first {num_queries} lines of the specified tasks will be simulated."
)
num_queries = min(num_queries, len(tasks))

max_conversation_turns *= 2 # account for both user and assistant turns

prompty_model_config = self.model_config
Expand Down Expand Up @@ -586,7 +586,10 @@ async def _create_conversations_from_query_responses(
for i, query_response_pair in enumerate(query_responses):
query = query_response_pair["q"]
response = query_response_pair["r"]
task = tasks[i]
try:
task = tasks[i]
except IndexError:
task = None

conversation = await self._complete_conversation(
conversation_starter=query,
Expand Down Expand Up @@ -621,7 +624,7 @@ async def _complete_conversation(
*,
conversation_starter: str,
max_conversation_turns: int,
task: str,
task: Optional[str],
user_simulator_prompty: Optional[str],
user_simulator_prompty_options: Dict[str, Any],
target: Callable,
Expand Down Expand Up @@ -659,16 +662,21 @@ async def _complete_conversation(
user_simulator_prompty_options=user_simulator_prompty_options,
)
if len(conversation_history) == 0:
conversation_starter_from_simulated_user = await user_flow(
task=task,
conversation_history=[
{
"role": "assistant",
"content": conversation_starter,
}
],
action="rewrite the assistant's message as you have to accomplish the task by asking the right questions. Make sure the original question is not lost in your rewrite.",
)
if task:
conversation_starter_from_simulated_user = await user_flow(
task=task,
conversation_history=[
{
"role": "assistant",
"content": conversation_starter,
}
],
action="rewrite the assistant's message as you have to accomplish the task by asking the right questions. Make sure the original question is not lost in your rewrite.",
)
else:
conversation_starter_from_simulated_user = {
"content": conversation_starter,
}
else:
conversation_starter_from_simulated_user = await user_flow(
task=task,
Expand Down
Loading