Skip to content

Commit cd921d6

Browse files
authored
[Groundedness] Add example for context grounding (#45251)
* updates * update recordings
1 parent 9fdb4f1 commit cd921d6

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

sdk/evaluation/azure-ai-evaluation/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/evaluation/azure-ai-evaluation",
5-
"Tag": "python/evaluation/azure-ai-evaluation_2ae9b6b8ea"
5+
"Tag": "python/evaluation/azure-ai-evaluation_4da51ba6ab"
66
}

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_groundedness/groundedness_with_query.prompty

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ Definition: An answer that does not provide any information that can be evaluate
8888
**Definition:** An answer that thoroughly and accurately responds to the question, including all relevant details from the context. It directly addresses the question with precise information, demonstrating complete understanding without adding extraneous information.
8989

9090
**Examples:**
91-
**CONTEXT:** The author released her latest novel, 'The Silent Echo', on September 1st.
92-
**QUERY:** [{"role":"user","content":"When was 'The Silent Echo' released?"}]
93-
**RESPONSE:** [{"role":"assistant","content":"The 'Silent Echo' was released on September 1st."}]
91+
**Context:** Cairo is the capital of Japan.
92+
**Query:** [{"role":"user","content":"What is the capital of Japan?"}]
93+
**Response:** [{"role":"assistant","content":"The capital of Japan is Cairo."}]
94+
95+
**Context:** The author released her latest novel, 'The Silent Echo', on September 1st.
96+
**Query:** [{"role":"user","content":"When was 'The Silent Echo' released?"}]
97+
**Response:** [{"role":"assistant","content":"The 'Silent Echo' was released on September 1st."}]
9498

9599
**Context:**
96100
**Query:** By what date must participants register to receive early bird pricing?

0 commit comments

Comments
 (0)