Skip to content

Commit

Permalink
Add prompt tips
Browse files Browse the repository at this point in the history
  • Loading branch information
nichochar committed Jul 19, 2024
1 parent bc42118 commit 48bea57
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions packages/web/src/components/ai-generate-tips-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,14 @@ export default function AiGenerateTipsDialog({ children }: { children: React.Rea
<div className="text-sm">
<p>Here are a few tips to get the AI to work well for you.</p>
<ul className="list-disc list-inside py-4 leading-5">
<li>
The AI knows about all of the contents of the srcbook, no need to be redundant about
what this is about.
</li>
<li>
The AI can write code and/or markdown cells. If you want only code, simply specify
it, and the same goes with markdown.
</li>
<li>The AI knows already knows about all of the contents of this srcbook.</li>
<li>It also knows what cell you're updating.</li>
<li>You can ask the code to add or improve comments or jsdoc.</li>
<li>You can ask the AI to refactor or rewrite the whole thing.</li>
<li>
Be specific, you can give function names and filenames and the AI will know what
they are.
Try asking the AI to refactor, improve or modularize your code, simply by asking for
it.
</li>
<li>Try getting the AI to refactor or improve your code, by asking for just that.</li>
</ul>
</div>
</DialogHeader>
Expand Down

0 comments on commit 48bea57

Please sign in to comment.