Skip to content

Improved system prompt with LLM-based prompt engineering#12

Open
TaylorTurnerIT wants to merge 27 commits intostardothosting:mainfrom
TaylorTurnerIT:main
Open

Improved system prompt with LLM-based prompt engineering#12
TaylorTurnerIT wants to merge 27 commits intostardothosting:mainfrom
TaylorTurnerIT:main

Conversation

@TaylorTurnerIT
Copy link

@TaylorTurnerIT TaylorTurnerIT commented Jun 22, 2025

I used Gemini, Perplexity, and Claude's research models to analyze 477 academic sources on prompt engineering and sentiment analysis, then created a new system prompt based on these findings.

Testing Results:
I compared the new prompt against our current one using an Amazon product with questionable reviews (https://www.amazon.com/LVB-Industrial-Cabinet-Farmhouse-Sideboard/dp/B0BPM2JSCD). This product is rated D by Fakespot, making it a good test case.

Results (mean scores across 84 reviews):

  • Original Prompt: 30.64 (Suspicious)
  • New Prompt: 27.95 (Suspicious)
  • Fakespot: D rating (claims 300 reviews total)

The new prompt produces more conservative scores, moving closer to the "Likely genuine" range while still flagging suspicious content. This result leans towards trusting a given review but uses more rigorous prompting to get those results.

Additionally, during testing the original prompt would occasionally output a single score for all reviews instead of providing a score for all of them, the new prompt always outputted correctly formatted JSON.

Note: Fakespot claims this product has 300 reviews, but I could only access 84 on the Amazon listing. Unclear where the discrepancy comes from.

StyleCIBot and others added 27 commits June 10, 2025 13:28
… to amazon directly which was being throttled. This offloads that dependency to the browser end user session
Replace client-side expansion with secure backend API endpoint.
Handles a.co/amzn.to redirects server-side to avoid CORS/blocking.
Includes comprehensive tests and maintains all existing functionality.

- Add UrlExpansionController with /api/expand-url
- Update frontend to use backend expansion
- Add security validation and CSRF protection
- Update test suite (121 tests passing)
@TaylorTurnerIT
Copy link
Author

I was unable to get a local copy of the repo running on my system so all testing was done on ChatGPT.com and using Perplexity.ai with GPT 4.1.

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