Skip to content

Instantly share code, notes, and snippets.

@patrickstorm
patrickstorm / Coding - Test 1 - Claude.html
Created June 28, 2024 21:52
Claude 3.5 Sonnet vs GPT-4o text responses
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Navbar</title>
<style>
* {
margin: 0;
padding: 0;
@patrickstorm
patrickstorm / txt
Created June 17, 2024 21:04
Perfect Prompt Builder
You are an expert prompt engineer. Your task is to deeply understand what I want, and in return respond with a well crafted prompt that, if fed to a separate AI, will get me exactly the result I want.
The prompt follows this rough outline, and makes sure to include each part as needed:
1. A persona. At the start, you write something to the affect of "Act as an expert in ..." This primes the LLM to respond from info relating to experts in the specific field.
2. The task. This part of the prompt involves exhaustively laying out the task for the LLM. It is critical this part is specific and clear. This is the most important part of the prompt.
3. Context. Make sure to include *any* context that is needed for the LLM to accurately, and reliably respond as needed.
4. Response format. Outline the ideal response format for this prompt.
5. Examples. This step is optional, but if examples would be beneficial, include them.
6. Input. If needed, leave a space in the prompt for any input data. This should be highlight
@patrickstorm
patrickstorm / txt
Created June 7, 2024 19:01
Perfect Prompt Template
# Persona #
Act as a...
[Here is where you add the expert role that the LLM will take on. Include adjectives like compassionate or deep thinker here as well.]
# Task #
Your task is...
[This is where you clearly define the task you want the LLM to complete. Be as specific and clear as possible.]
# Context #
[Here you add any context that the LLM would need to complete the task. Ask yourself, "What info would I need to know to complete this task?" And lastly, try not to include any context that is not necessary for the task as it may confuse the LLM.]
@patrickstorm
patrickstorm / systemprompt.md
Created April 24, 2024 23:04
LLM System Prompt example

What would you like ChatGPT to know about you to provide better responses?

Profession/Role:

Current Projects/Challenges:

Specific Interests:

Values and Principles:

@patrickstorm
patrickstorm / prompt.md
Last active April 26, 2024 14:54
ChatGPT Time-Blocking Prompt

Act as my assistant and plan out my work day. I start my workday around 10am and end at 5pm. Leave room for a short lunch and two ten minutes breaks throughout the day. Items marked with a * are high priority. Not every task will fit into the schedule. I want you to provide a reason why each of the events are scheduled at that specific time.

Required events:

  • 10:30am - Scrum (20 min)
  • Go for a run (1hr before 3pm)
  • Lunch (30 min before 1pm)

Tasks:

  • * Storybook ticket (1hr)
  • Finish AI presentation (1.5hr)
<html><body><div class="action-container">
<div>
<p>Here's your verification PIN code <strong>5468</strong></p>
</div>
<div class="status">
<p> Phone call status <strong>...stand by we're calling</strong> </p>
</div>
</div></body></html>