Skip to content

Commit de3b50d

Browse files
ela-ineccozianusvaruagElaine Wan
authored
Add token credential param to groundedness (#4668)
* Ccozianu/rm bug fix (#2247) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/rm bug fix (#2248) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/rm bug fix (#2259) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2273) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2275) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds * Fix typo in main invocation --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2292) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds * Fix typo in main invocation * Add SystemLog: prefix for scorer * Fixed type error on timeout --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2308) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds * Fix typo in main invocation * Add SystemLog: prefix for scorer * Fixed type error on timeout * Go to a different endpoint for connections listkeys call in batch_benchmark_score --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2316) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds * Fix typo in main invocation * Add SystemLog: prefix for scorer * Fixed type error on timeout * Go to a different endpoint for connections listkeys call in batch_benchmark_score * Synced all batch-benchmark-inference patch version --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2409) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds * Fix typo in main invocation * Add SystemLog: prefix for scorer * Fixed type error on timeout * Go to a different endpoint for connections listkeys call in batch_benchmark_score * Synced all batch-benchmark-inference patch version * use default cred * replaced with managed cred * add more logs * add compute target * remove logs, handle errors better --------- Co-authored-by: svaruag <[email protected]> * Ccozianu/4office debug (#2428) * add more logs * fix stdout logs * Make sure we recover details * Make sure we recover details (#2238) * SystemLog: prefix logging * Ccozi/temp logging fix (#2246) * Make sure we recover details * SystemLog: prefix logging * Adding more detailed logging * Fixing typo * fix NPE in logging * Cleaned up somehwat dependence on status definitions * handle folder * Added finetuned_start_timeout_seconds * Fix typo in main invocation * Add SystemLog: prefix for scorer * Fixed type error on timeout * Go to a different endpoint for connections listkeys call in batch_benchmark_score * Synced all batch-benchmark-inference patch version * use default cred * replaced with managed cred * add more logs * add compute target * remove logs, handle errors better * Add notebook to list aoai connections * cleanup notebook test values --------- Co-authored-by: svaruag <[email protected]> * add token credential param to groundedness * update ver * fix merge * fix merge * typo --------- Co-authored-by: ccozianu <[email protected]> Co-authored-by: svaruag <[email protected]> Co-authored-by: Elaine Wan <[email protected]>
1 parent d701f31 commit de3b50d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

assets/evaluators/builtin/groundedness/evaluator/_groundedness.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ def __init__(self, model_config, *, threshold=3, credential=None, **kwargs):
193193
)
194194
self._model_config = model_config
195195
self.threshold = threshold
196+
self._credential = credential
196197
# Needs to be set because it's used in call method to re-validate prompt if `query` is provided
197198

198199
@overload
@@ -299,7 +300,8 @@ def _ensure_query_prompty_loaded(self):
299300
self._flow = AsyncPrompty.load(
300301
source=self._prompty_file,
301302
model=prompty_model_config,
302-
is_reasoning_model=self._is_reasoning_model)
303+
is_reasoning_model=self._is_reasoning_model,
304+
token_credential=self._credential)
303305

304306
def has_context(self, eval_input: dict) -> bool:
305307
"""

assets/evaluators/builtin/groundedness/spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type: "evaluator"
22
name: "builtin.groundedness"
3-
version: 3
3+
version: 4
44
displayName: "Groundedness-Evaluator"
55
description: "Assesses whether the response stays true to the given context in a retrieval-augmented generation scenario. It’s best used for retrieval-augmented generation (RAG) scenarios, including question and answering and summarization. Use the groundedness metric when you need to verify that ai-generated responses align with and are validated by the provided context."
66
evaluatorType: "builtin"

0 commit comments

Comments
 (0)