← Back to Pull requests

[Feature] Add azure openai client to evaluator.py #42

Merged
upskyy merged 2 files (98 lines) on Jul 08, 2024 02:03 UTC
View on GitHub
upskyy upskyy commented on Jul 01, 2024 14:45 UTC
Author

Notes


  • Add azure openai client

  • Update README.md

  • - I have written detailed information on how to use azure in README.md.

    OpenAI

    python evaluator.py -o yanolja_EEVE-Korean-Instruct-10.8B-v1.0.jsonl -k sk-somethingsomething -t 30
    

    Azure

    export AZURE_ENDPOINT=$AZURE_ENDPOINT
    export AZURE_DEPLOYMENT_NAME=$AZURE_DEPLOYMENT_NAME
    export AZURE_API_VERSION=$AZURE_API_VERSION
    
    python evaluator.py --azure -o yanolja_EEVE-Korean-Instruct-10.8B-v1.0.jsonl -k sk-somethingsomething -t 30
    

    Related issue

    #41

    Diff: 98 lines (+77 / -21) across 2 files Reviewer: realsigridjin Review duration: 9317m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.37) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 98 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.86 · 2 substantive comment(s)
    0.86
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    84%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.275
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    4 items
    realsigridjin realsigridjin commented on Jul 07, 2024 23:28 UTC
    Reviewer

    @upskyy 기여 감사합니다! conflict resolve 해결 부탁드리겠습니다.

    upskyy upskyy commented on Jul 08, 2024 01:39 UTC
    Author

    @sigridjineth conflict 해결하고, make format && make check 도 완료했습니다.

    StableFluffy StableFluffy commented on Jul 08, 2024 02:03 UTC
    Contributor

    기여 감사드립니다!

    Reviewers
    Assignees
    upskyy upskyy
    Labels
    risk: low confidence: 84.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.9% (MEDIUM) · Higher = larger blast radius
    36.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 84.2% · Lower = rushed or shallow review
    84.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 5.9% · Safe to merge
    5.9%