Improve evaluation harness: concurrent execution, robust error handling, and CLI model configuration#22
Open
jsham042 wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
@jsham042 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves the RCA-Agent evaluation harness with concurrent execution, robust error handling, CLI-driven model
configuration, and run resumability.
Changes
Evaluation Runner (
run_agent_standard.py)--workers Nflag for parallel query evaluation viamultiprocessing.Pool--source,--model,--api_key,--api_base, and--profileflags so modelconfiguration no longer requires editing YAML files
--profileflag to load named configurations fromapi_profiles.yaml(e.g.,--profile anthropic-sonnet)API Router (
api_router.py).create()tomessages.stream()for Anthropic callssystemparameter instead of passing as amessage
google.generativeaitogoogle.genaiclient withtypes.Content/types.PartAPIrate-limit vs quota-exhaustion vs connection errors
Controller (
controller.py)re.search(r"```json\n(.*)\n```")with flexible fallback patterns thathandle varied whitespace and formatting from different models
NoneAPI responses with graceful recovery instead of crashesConfiguration
api_profiles.example.yamlwith profile templates for Anthropic, OpenAI, and Google modelsapi_config.yaml,api_profiles.yaml, andsubmission/from version controlSecurity
.exampletemplates with placeholder values are committedTesting
Changes were validated by running the full OpenRCA benchmark across multiple model providers.