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

Refactor ai/ to share code between service & scripts #874

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

wwwillchen
Copy link
Collaborator

@wwwillchen wwwillchen commented Aug 28, 2024

Fixes #871.

This does a major refactoring of the code within ai/ so that code, particularly llm_lib.py is properly shared between the online AI service and the offline scripts. This ensures consistency in calling LLMs and forming prompt context across the different workflows (e.g. generating dataset for eval, formatting goldens, and actual editor toolbar usage).

This removes a bunch of old scripts that we don't use anymore.

Finally, this uses uv so that Python dependencies/env are well-managed.

@wwwillchen wwwillchen changed the title Refactor ai/ to share code between service & scripts Refactor ai/ to share code between service & scripts Aug 28, 2024
ai/README.md Outdated Show resolved Hide resolved
ai/src/ai/common/llm_lib.py Show resolved Hide resolved
ai/src/ai/common/llm_lib.py Show resolved Hide resolved
@wwwillchen wwwillchen merged commit 8c8c30e into google:main Aug 29, 2024
1 check passed
@wwwillchen wwwillchen deleted the i871 branch August 29, 2024 04:52
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.

Refactor LLM library code
2 participants