TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How much can prompt engineering improve something?

1 pointsby bigEnotationalmost 2 years ago
I&#x27;ve created a Github action to provide code reviews as annotations to PRs [1], but it&#x27;s providing some pretty odd feedback [2]. I&#x27;m not sure if it&#x27;s my use of openai&#x27;s functions[3], or my system prompt [4], or if gpt just isn&#x27;t that good at isolated code reviews.<p>[1] https:&#x2F;&#x2F;github.com&#x2F;marketplace&#x2F;actions&#x2F;chat-gpt-code-peer-review<p>[2] https:&#x2F;&#x2F;github.com&#x2F;edelauna&#x2F;discord-bot-ai&#x2F;pull&#x2F;74&#x2F;files<p>[3] https:&#x2F;&#x2F;github.com&#x2F;edelauna&#x2F;gpt-review&#x2F;blob&#x2F;main&#x2F;src&#x2F;openai&#x2F;utils&#x2F;make-review.ts#L11<p>[4] https:&#x2F;&#x2F;github.com&#x2F;edelauna&#x2F;gpt-review&#x2F;blob&#x2F;main&#x2F;src&#x2F;openai&#x2F;utils&#x2F;message-manager.ts#L13

1 comment

Zetobalalmost 2 years ago
It&#x27;s your prompts they are way to casual also starting your system prompt with &quot;You are a lazy...&quot; will make sure you get crappy output. Tell the AI what you want to do ie. annotate PRs on github and then maybe break it further down. If you don&#x27;t it expect the full code available that&#x27;s why you get the unused imports &quot;errors&quot;. You are explaining just so it can make errors but not enough to do the task you want it to do. Also scrap the json part... it knows.
评论 #37421125 未加载