Skip to content

Instantly share code, notes, and snippets.

Fragments

"Fragments" are text you can inject into a conversation. You can start a conversation with a fragment with -f <fragment> or insert one during a chat with !fragment <fragment>.

The site-text fragment pulls a website as markdown and injects it into the prompt.

$ llm install llm-fragments-site-text
$ llm -f site:https://hinge.co/mission "What's Hinge all about?"

llm -T get_collections -T get_relevant_documents "how do i find similar documents based on embeddings in llm" --tools-debug

To find similar documents based on embeddings in an LLM, I'll need to help you use the embedding database tools available. Let me show you how to do this.

First, let's see what collections are available in the embeddings database:

Tool call: get_collections({})
  ["documentation"]
@daturkel
daturkel / retina.py
Created April 17, 2020 21:06
[Matplotlib retina] #python #matplotlib
import matplotlib.pyplot as plt
%config InlineBackend.figure_format = 'retina'
@daturkel
daturkel / README.md
Last active April 17, 2020 20:58 — forked from mattsears/README.md
[Old Ruby Todo] A ruby-based todo list that I forked to make some tweak. #old

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable: