cofacts / rumors-api

GraphQL API server for clients like rumors-site and rumors-line-bot
https://api.cofacts.tw
MIT License
109 stars 26 forks source link

Adjust prompt to prevent ChatGPT from making up content #303

Closed MrOrz closed 1 year ago

MrOrz commented 1 year ago

AI is making up content for article with insufficient context. This PR mitigates this issue by asking the AI to stop making up content. https://g0v-slack-archive.g0v.ronny.tw/index/channel/C2PPMRQGP/2023-04#ts-1680878165.6601 image

Also, "或懷疑" is added to prompt to reduce the chance that the reply gets carried away by the hoax.

coveralls commented 1 year ago

Coverage Status

Coverage: 88.454%. Remained the same when pulling e18e4bc79f07a3594cd7e4bcb224aff67a97f151 on prompt into d901a44df6d5fe43297cc66d479341ac388c24a8 on master.