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

add rag functions, add dep on GitPython #9

Merged
merged 6 commits into from
Mar 31, 2024
Merged

add rag functions, add dep on GitPython #9

merged 6 commits into from
Mar 31, 2024

Conversation

sivang
Copy link
Member

@sivang sivang commented Dec 13, 2023

No description provided.

In `main.py`:
- Added an import statement for `retrieve_git_data` from `agit.rag`.
- Added
 a new variable `context` which retrieves git data using `retrieve_git_data(".")`.
- Passed the `context` variable as an argument to the
`translate_to_git_command` function.

In `openai_api.py`:
- Added a new parameter `context=None` to the `translate_to_git_command` function.
- Added a new
variable `context_summary` to serialize the context into a concise summary.
- Updated the prompt template to include the `context_summary` in the system
message.

In `rag.py`:
- Changed the name of the `recent_commits` key in the `data` dictionary to `commits`.
@sivang
Copy link
Member Author

sivang commented Mar 31, 2024

Approved.

@sivang sivang assigned sivang and unassigned sivang Mar 31, 2024
@sivang sivang merged commit b9c667f into main Mar 31, 2024
3 checks passed
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.

1 participant