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

Tune the system prompts to extract package names or ecosystems #428

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Dec 19, 2024

With Copilot+Anthropic the user message can contain instructions that
are passed from the chat client and really sound like a system message.
For whatever reason, the chat client includes them with role=user.
These instructions confuse the LLM when extracting the package names or
ecosystem and it replies with a mix of JSON and natural language.

To work around that, Pankaj suggested to tune the system prompt and tell
the LLM to ignore the instructions. This seems to work and helps
Anthropic extract the package names even with copilot user message.

Co-authored-by: Pankaj Telang [email protected]

Related: #401

With Copilot+Anthropic the user message can contain instructions that
are passed from the chat client and really sound like a system message.
For whatever reason, the chat client includes them with `role=user`.
These instructions confuse the LLM when extracting the package names or
ecosystem and it replies with a mix of JSON and natural language.

To work around that, Pankaj suggested to tune the system prompt and tell
the LLM to ignore the instructions. This seems to work and helps
Anthropic extract the package names even with copilot user message.

Co-authored-by: Pankaj Telang <[email protected]>

Related: #401
Copy link
Contributor

@ptelang ptelang left a comment

Choose a reason for hiding this comment

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

Looks good!

@ptelang ptelang merged commit 241a9f5 into main Dec 20, 2024
3 checks passed
@ptelang ptelang deleted the tune_prompts branch December 20, 2024 15:49
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.

2 participants