-
Notifications
You must be signed in to change notification settings - Fork 21
Ranking different Optimization candidates based on their speedup and diff #717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
PR Type
Enhancement, Bug fix
Description
Add AI-driven candidate ranking endpoint usage
Compute unified diffs for candidates
Fallback to local ranking when API fails
Log and handle ranking request errors
Diagram Walkthrough
File Walkthrough
aiservice.py
Add AI service ranking request with error handling
codeflash/api/aiservice.py
generate_ranking
method calling/ranker
.code_utils.py
Add unified diff string utility
codeflash/code_utils/code_utils.py
unified_diff_strings
utility.function_optimizer.py
Use AI ranking with diff/speedup and fallback
codeflash/optimization/function_optimizer.py
generate_ranking
and use ranking result.unified_diff_strings
.