From 70b20b7ae819b9d1b5d1884fc417e4bd5db0a506 Mon Sep 17 00:00:00 2001 From: Gilad Alboher <136579814+giladAlboher@users.noreply.github.com> Date: Wed, 13 Dec 2023 08:37:11 +0200 Subject: [PATCH] llm: add page (#11697) * llm: add page --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/llm.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/llm.md diff --git a/pages/common/llm.md b/pages/common/llm.md new file mode 100644 index 000000000..bbd0413ca --- /dev/null +++ b/pages/common/llm.md @@ -0,0 +1,28 @@ +# llm + +> Interact with Large Language Models (LLMs) via remote APIs and models that can be installed and run on your machine. +> More information: . + +- Set up an OpenAI API Key: + +`llm keys set openai` + +- Run a prompt: + +`llm "{{Ten fun names for a pet pelican}}"` + +- Run a [s]ystem prompt against a file: + +`cat {{path/to/file.py}} | llm --system "{{Explain this code}}"` + +- Install packages from PyPI into the same environment as LLM: + +`llm install {{package1 package2 ...}}` + +- Download and run a prompt against a [m]odel: + +`llm --model {{orca-mini-3b-gguf2-q4_0}} "{{What is the capital of France?}}"` + +- Have an interactive chat with a specific [m]odel: + +`llm chat --model {{chatgpt}}`