-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
PR Reviewer Guide 🔍(Review updated until commit 95114bd)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 95114bd
Previous suggestionsSuggestions up to commit 3cb5a2d
|
|
Persistent review updated to latest commit 95114bd |
codeflash/api/aiservice.py
Outdated
| Parameters | ||
| ---------- | ||
| - source_code (str): The python code to optimize. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO : change the docstring
|
@misrasaurabh1 ready to merge |
PR Type
Enhancement
Description
Add AI-powered candidate ranking endpoint
Compute unified diffs for ranking
Improve refinement logging conditionally
Fallback to heuristic ranking on failure
Diagram Walkthrough
File Walkthrough
aiservice.py
Add AI service ranking request handlercodeflash/api/aiservice.py
code_utils.py
Introduce unified diff string utilitycodeflash/code_utils/code_utils.py
function_optimizer.py
Integrate AI ranking into candidate selectioncodeflash/optimization/function_optimizer.py