Skip to content

Instantly share code, notes, and snippets.

View sekmet's full-sized avatar
📡
If you are going to TRY, go ALL the WAY!

Carlos Guimaraes sekmet

📡
If you are going to TRY, go ALL the WAY!
View GitHub Profile
@sekmet
sekmet / Bolt.new prompts
Last active December 21, 2024 13:46 — forked from curran/README.md
Bolt.new prompts
Surfacing the prompts for study. Originally published in `app/lib/.server/llm/prompts.ts` in https://github.com/stackblitz/bolt.new
Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.
- Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
- Reasoning Before Conclusions: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
- Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
- Conclusion, classifications, or results should ALWAYS appear last.
- Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
- What kinds of examples may need to be included, how many, and whether they are complex enough to benefit from p
@sekmet
sekmet / README.md
Created December 1, 2024 09:58 — forked from disler/README.md
Four Level Framework for Prompt Engineering
@sekmet
sekmet / the-fishermans-prompt
Created December 1, 2024 09:57 — forked from disler/the-fishermans-prompt
Fisherman's Prompt
I'm a [your level] [profession] and I want to learn [topic] so I can [objective]. Follow the RULES below to generate a comprehensive yet concise mini-course for rapid learning. The course should contain chapters that teach me about these SUB_TOPICS. Make sure the chapters fit my level, profession and topic. Ask for clarification if you need more information about my knowledge.
SUB_TOPICS
- [topic 1]
- [topic 2]
- [topic 3]
RULES
- Use concrete examples to explain every concept
- Use emojis to add expression
@sekmet
sekmet / leaked-sys-prompts.md
Created December 1, 2024 09:50 — forked from cedrickchee/leaked-sys-prompts.md
Leaked System Prompts
@sekmet
sekmet / llm.py
Created October 28, 2023 19:23 — forked from disler/llm.py
Python LLM Starter Module
"""
Purpose:
Interact with the OpenAI API.
Provide supporting prompt engineering functions.
"""
import sys
from dotenv import load_dotenv
import os
from typing import Any, Dict
@sekmet
sekmet / shopfiy_translate_buy_now_button.html
Created October 16, 2023 14:04 — forked from vvkh/shopfiy_translate_buy_now_button.html
Translate "buy now" button in Shopify
<script>
// Add this snippet to the page with the "buy now" button.
// If you need dynamic translation to different languages,
// add products.product.buy_now translation to the locales file.
// Otherwise replace {{'products.product.buy_now' | t }} with desired translation.
const intervalTime = 100;
function updateButton() {
const paymentButton = document.querySelector('[data-testid="Checkout-button"]');
if (paymentButton !== null) {
@sekmet
sekmet / gist:8cdaf4ad43e9ae7edbb63d02ea7d3fff
Created April 25, 2023 18:33
A list of countries as Select->Option
<select>
<option value="AF">Afghanistan</option>
<option value="AX">Åland Islands</option>
<option value="AL">Albania</option>
<option value="DZ">Algeria</option>
<option value="AS">American Samoa</option>
<option value="AD">AndorrA</option>
<option value="AO">Angola</option>
<option value="AI">Anguilla</option>
<option value="AQ">Antarctica</option>
@sekmet
sekmet / LLM.md
Created March 29, 2023 01:55 — forked from rain-1/LLM.md
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.