Skip to content

LLM plugin providing access to the LLM documentation

Notifications You must be signed in to change notification settings

simonw/llm-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-docs

This repo contains single file concatenated documentation for every released version of LLM and several other tools.

You can use this to answer questions about your LLM version using this command:

curl -s "https://raw.githubusercontent.com/simonw/llm-docs/refs/heads/main/llm/$(llm --version | cut -d' ' -f3).txt" | \
  llm -m gpt-4o-mini 'how do I embed a binary file?'

Asking more questions about the same documentation - or asking follow-up questions using llm -c or even llm chat -c - will benefit from OpenAI's token cache pricing.

Some of these files are a little large though:

curl -s 'https://raw.githubusercontent.com/simonw/llm-docs/refs/heads/main/datasette/1.0a16.txt' \
  | ttok

152131

That's 152,000 tokens - too large for gpt-4o-mini and quite expensive to process. Approach with caution!

About

LLM plugin providing access to the LLM documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages