Skip to content
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

Initial LLM-powered code generation script #4537

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

benjaminmah
Copy link
Contributor

Preliminary code generation script using models from OpenAI and Anthropic. Uses a local Qdrant vector DB for data point storage for similar commits to be injected into the single-shot and multi-shot prompts.

return None
except Exception as e:
logger.error(f"Unexpected error: {e}")
return None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the functions that retrieve data from Phab, we should move them to the phabricator.py lib (and use already existing ones in case there are)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the interdiff funciton to phabricator.py: ed1d257

Regarding the other retrievals from Phab, they use the API from libmozdata so I'm not sure if it would efficient or relevant to move these API calls to phabricator.py

bugbug/phabricator.py Outdated Show resolved Hide resolved
bugbug/tools/code_review_generation_evaluator.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants