Add model-agnostic analysis, response-cleaning, prompt/version tracking, incremental runs, and Chinese prompts#1
Open
Huberyky wants to merge 1 commit into
Conversation
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.
Motivation
Description
gabriel.analysisexposingreliability,validate, androbustnesshelpers for Krippendorff's α, ICC, Pearson/Spearman, MAE, F1/Cohen's κ, stratified reports, and bootstrap CIs.gabriel.utils.model_utilswithstrip_reasoning_tags,prompt_hash,write_run_metadata, andload_incremental_cacheto strip vendor CoT traces (e.g.,<think>...</think>), compute prompt hashes, and manage incremental reuse.rate,classify,extract) to acceptprompt_languageandincrementalflags, write prompt‑hash metadata torun_metadata.json, sanitize raw responses withstrip_reasoning_tagsbefore parsing, produce per‑task parse reports (*_parse_report.csv), and attempt incremental merged reads whenincremental=True.ratings_prompt_zh.jinja2,classification_prompt_zh.jinja2,extraction_prompt_zh.jinja2) and wired template selection byprompt_language.MODEL_PRICINGso cost estimates remain available when using OpenAI‑compatiblebase_urls.gabriel.reliability,gabriel.validate,gabriel.robustness) and added unit tests and utilities accordingly.Testing
pytest -q tests/test_analysis_extensions.py tests/test_imports.py tests/test_discover_exports.py, all tests passed.python -m py_compile $(rg --files src/gabriel -g '*.py' | tr '\n' ' ')succeeded (no syntax errors).Codex Task