Repository navigation
Add credentialed BFCL v4 web evaluation - #341
Open
ReinforcedKnowledge wants to merge 2 commits into
Open
ReinforcedKnowledge wants to merge 2 commits into
ReinforcedKnowledge wants to merge 2 commits into
Conversation
Run the pinned official BFCL generator and evaluator against an OpenAI-compatible endpoint, covering the non-live, live, multi-turn, and memory collections. Validate exact file and ID inventories, reject inference failures, independently recompute the fixed-weight score contribution, pin the memory encoder, and record reproducibility metadata. Apply a hash-verified temporary scorer patch for BFCL's currently uncalled multi-turn irrelevance check.
Register the official web-search and no-snippet categories as a separate opt-in external evaluation. Mount SerpAPI credentials through a temporary mode-0600 secret file, preflight quota, audit live searches without recording raw queries or keys, validate exact result and score inventories, and report the fixed 0.2-weight contribution. Generalize the pinned BFCL runner so the existing non-web path retains its behavior while the web path skips the memory encoder setup. Add regression coverage for score weighting, secret lifecycle, response classification, failure handling, and exception redaction.
1 of 11 tasks
This branch has not been deployed
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
Add an opt-in
bfcl_v4_webexternal evaluation covering BFCL v4's credentialed web-search categories:web_search_baseweb_search_no_snippetTogether these categories contribute the remaining 20% of the official BFCL v4 score. They are kept separate from the deterministic non-web evaluation in #340 because they use a paid, live external service and can fail for reasons unrelated to the evaluated model.
Depends on #340.
Implementation
Reuses the pinned official Gorilla checkout and OpenAI-compatible provider integration introduced in Add BFCL v4 non-web external evaluation #340.
Runs BFCL's official web generation and scoring paths.
Validates the exact expected inventory:
Rejects missing or unexpected files, missing or duplicate IDs, inference errors, tracebacks, malformed scores, and inconsistent counts.
Reports the official fixed-weight web contribution:
0.2 * mean(web_search_base, web_search_no_snippet)Credential handling
SERPAPI_API_KEYonly in the outer evaluation process.0600file.Live-search auditing
The adapter wraps the pinned BFCL
GoogleSearch.get_dict()boundary and records one sanitized event per request:Explicit SerpAPI errors take precedence over any stale or partial result data. Rate-limit responses retain BFCL's retry signal, while malformed responses, empty results, error payloads, missing results, non-rate-limit exceptions, and incomplete or out-of-order audit records fail closed.
Why this is a separate evaluation
Web search is live, stochastic, credentialed, and paid. Combining it with the non-web suite would allow quota exhaustion, service failures, or changing search results to invalidate the deterministic 80% of BFCL v4.
The two evaluations report their fixed-weight contributions independently:
bfcl_v4_non_web: maximum0.8bfcl_v4_web: maximum0.2Their contributions can be added when both runs use the same model and evaluation configuration.
Validation
2168 passed, 8 skipped.tytype checking passed.git diff --checkpassed.allenai/Olmo-3-7B-Instructwith:0.0and no search credits were consumed. This validates the model/provider, inventory, scoring, and zero-score paths, but is not presented as a model-quality result.WebSearchAPIand proposed audit wrapper:6107to6106