TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How much can prompt engineering improve something?

1 点作者 bigEnotation超过 1 年前
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

Zetobal超过 1 年前
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 未加载