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

fix: optimize the prompt words for front matter #2140

Merged
merged 3 commits into from
Sep 15, 2024

Conversation

KintaMiao
Copy link
Contributor

Optimize the prompt words so that the AI ​​summary skips the Front Matter part

WHAT

copilot:summary

copilot:poem

WHY

The original prompt might mistakenly identify the time in the Front Matter as part of the article content, such as in my article https://x.vriancao.top/a-simple-cf-workers-ai-example, where AI incorrectly recognized the time "May 1, 2024, 18:00:00" in the Front Matter as the time when Cloudflare launched Workers AI.

HOW

copilot:walkthrough

CLAIM REWARDS

https://x.vriancao.top/
Discord ID:vriancao

For first-time contributors, please leave your xLog address and Discord ID below to claim your rewards.

Optimize the prompt words so that the AI ​​summary skips the Front Matter part
The original prompt might mistakenly identify the time in the Front Matter as part of the article content, such as in my article https://x.vriancao.top/a-simple-cf-workers-ai-example, where AI incorrectly recognized the time "May 1, 2024, 18:00:00" in the Front Matter as the time when Cloudflare launched Workers AI.
Copy link

vercel bot commented Aug 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
xlog ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 11:33am

Copy link

github-actions bot commented Aug 3, 2024

📦 Next.js Bundle Analysis for xlog

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 90.5 KB (-7 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

@hyoban
Copy link
Member

hyoban commented Sep 2, 2024

What if we do not have a front matter in the content?

Consider the case without Front Matter.
@KintaMiao
Copy link
Contributor Author

What if we do not have a front matter in the content?

Here we are

@hyoban hyoban merged commit 1627094 into Crossbell-Box:dev Sep 15, 2024
3 checks passed
@hyoban hyoban changed the title Update page.server.ts, Optimize the prompt words fix: optimize the prompt words for front matter Sep 15, 2024
@hyoban
Copy link
Member

hyoban commented Sep 15, 2024

Thanks, you can observe the effect in https://xlog.page after the deployment is completed

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.

2 participants