An open API service indexing awesome lists of open source software.

https://github.com/agentgill/prompt-library

My Prompt Library
https://github.com/agentgill/prompt-library

Last synced: 2 months ago
JSON representation

My Prompt Library

Awesome Lists containing this project

README

        

# My Prompt Library

Reusable & customizable set of prompts and resources for prompt engineering.

> "The Prompt is the new fundamental unit of knowledge work" by IndyDevDan

## Level 1 Prompt - Basic Text Input

Basic free-text input "tell me a joke".

## Level 2 Prompt - Structured Intructions

Reusable Prompt that you can use to solve well defined problems where you specify additional information upfront using static variables.

## Level 3 Prompt - Give Examples

Use & provide examples

## Level 4 Prompt - Dynamic Variables

## Getting started

- Install uv `curl -LsSf https://astral.sh/uv/install.sh | sh`
- Install llm `brew install llm`
- Install ollama `https://ollama.com/download`
- List ollama models `ollama models`
- List llm models `llm models`
- See default model `llm models default`

## Level 1 - Basic Input

Pinging

- `llm < prompts/prompt_level1_ping.txt`

Counting

- `llm < prompts/prompt_level1_count.txt`

Ping using ollama & llama3.2

- `ollama run llama3.2 < prompts/prompt_level1_count.txt`

## Level 2 - Structured Prompt

Structured prompt

- `ollama run llama3.2 < prompts/prompt_level2_comedian.txt`

## Level 3 - With Examples

Guide the LLM (input and output file)

- `llm < prompts/prompt_level3_summarize.txt > output.md`

## Level 4 - Make scalable

Use dymnamic variables and create scalable prompts on the fly

- Specific purpose
- Specific instructions
- Specific examples
- Dynamic Variables

It's all just prompts.

## Models

How to install models

- Install AWS Bedrock Anthropic `llm install llm-bedrock-anthropic`
- Install Anthropic Models for direct API access `llm install llm-claude-3`
- Install Groq Models `llm install llm-groq`

## Resources

- LLM
- LLM Plugins & Models
- Ollama
- Ollama Docs
- Ollama Models
- Pymupdf
- Pymupdf4llm
- Typer
- UV