Skip to content

John-Lin/llm-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My templates for LLM

Use these with LLM 0.24a0 or later and the llm-templates-github plugin.

Setup

brew install llm

install that plugin like this:

llm install llm-templates-github

Usage

Simple summarize

curl -sL 'https://llm.datasette.io/' | llm -t gh:John-Lin/summarize -p language English

template parameter:

  • language: the language to use for the output, e.g. English, French, Spanish, etc.

Meta prompt summarize

complex_prompt=$(llm -t gh:John-Lin/meta_prompt_summarize -p language English)

llm -f https://www.bbc.com/sport/football/articles/crl05r070wro -s $complex_prompt

template parameters:

  • language: the language to use for the output, e.g. English, French, Spanish, etc.
  • simple_prompt: a simple prompt to use for LLM to improve prompts e.g. Summarize this news article.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors