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

feat: better prompt enhancement #428

Merged

Conversation

SujalXplores
Copy link

@SujalXplores SujalXplores commented Nov 26, 2024

📝 PR Checklist

  • Branch from the main branch
  • Update documentation if needed
  • Manually verify all new functionality works as expected
  • Keep PRs focused and atomic

Related PR: #347

Related Issue: #149

Prompt Enhancement Improvements:

  • app/routes/api.enhancer.ts: Added detailed instructions for enhancing prompts, including guidelines for making instructions explicit, adding context, removing redundancy, and maintaining professional language.
  • Edge Case Handling: Addressed the issue where the model might include template variables in the output due to confusion.

Before:

8e723067-b209-404c-a3af-86a9117f3054.mp4

After:

0c6fd7ef-d1f3-4da6-ba7a-cdba6ba89ecc.mp4

README Updates:

  • README.md: Added "Better prompt enhancing" to the list of completed features.

Stream Transformation Method:

image

Reference here

@SujalXplores
Copy link
Author

@wonderwhy-er Please review this PR.

@dustinwloring1988
Copy link
Collaborator

This has been added in a merged commit, thanks SujalXplores

@thecodacus thecodacus merged commit b96b060 into stackblitz-labs:main Dec 3, 2024
1 check passed
@SujalXplores SujalXplores deleted the feat/improve-prompt-enhancement branch December 3, 2024 15:42
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.

3 participants