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 additional repo metadata to llm prompts. #69

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

eli64s
Copy link
Owner

@eli64s eli64s commented Oct 23, 2023

Restructure LLM prompts and add additional repository metadata to give the model more overall context of the user's codebase.

For example, the prompt to generate the project overview summary is as follows:

overview = """Generate a <=100 word summary that describes the capabilities of the repository {0}.
Focus on the project's use-case and value proposition, not its technical details.
Do not refer to the project using the URL provided. Below are more details of the
project for you can get a deep understanding of the codebase and its components.
Repository Details:
\nDirectory Tree: {1}\nDependencies: {2}\nCode Summaries: {3}\n
"""

The prompt is injected with the repository URL, a directory tree, list of project dependencies, and the previous code summaries the model generated.

@eli64s eli64s merged commit 73355bc into main Oct 23, 2023
1 check passed
@eli64s eli64s added the enhancement New feature or request label Oct 23, 2023
@eli64s eli64s deleted the feat/enhance-llm-repo-context branch January 4, 2024 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant