Skip to content

Add additional repo metadata to llm prompts.#69

Merged
eli64s merged 1 commit intomainfrom
feat/enhance-llm-repo-context
Oct 23, 2023
Merged

Add additional repo metadata to llm prompts.#69
eli64s merged 1 commit intomainfrom
feat/enhance-llm-repo-context

Conversation

@eli64s
Copy link
Copy Markdown
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
@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