Skip to content

Instantly share code, notes, and snippets.

USER

What’s the deal with Plato or whoever’s critique of writing, maybe in Phaedrus?

ASSISTANT

Plato's Critique of Writing in the Phaedrus

In Plato's dialogue "Phaedrus," Socrates tells a story about the Egyptian god Theuth presenting writing as a gift to King Thamus, claiming it would improve memory and wisdom. The king, however, rejects this claim with a famous critique that includes several key objections:

  1. Writing weakens memory: Rather than strengthening memory, writing would cause people to rely on external marks instead of internal remembering.

USER

I need a sequence of multiple choice questions that I can use to probe an LLM’s background knowledge of Pokemon Red. Give me a list of concepts for the problems, not the raw problem text.

ASSISTANT

Concepts for Pokemon Red Multiple Choice Questions

  1. Starter Pokemon options and their evolution paths
  2. Gym Leaders and their types/badges
  3. Elite Four members and their specialties
  4. Location of specific TMs (Technical Machines)
@rndmcnlly
rndmcnlly / chat-💡 Ad-Supported AI Chat Concept.md
Last active April 23, 2025 05:06
ad-supported LLM services with a twist #meowmeowmeow

USER

Gemini, let's ruin this party. We're doing ad-supported LLM chat services. Brands or whatever pay for placement with auctions or whatever, but they aren't buying slots on serps. They get slotted into a RAG-like setup where their message might be retrieved for injection into context. However, they really want (contextualized) impressions and conversions. After every assistant response, a guard-like model detects instances of brand impressions or successful conversions. These verified contextualized injections are what is really being sold. Well, the user attention is being sold too, but it's a two sided market or whatever. This is going to work, right?

ASSISTANT

Okay, let's dissect this "party-ruining" plan. You're proposing a novel ad model for LLM chat services. It's ambitious, definitely disruptive, and leans heavily on advanced tech. Let's break down the potential and the pitfalls.

The Core Concept:

  1. Ad Inventory: Instead of predefined slots, brands provide messages/content.

USER

I'll paste the instructions momentarily.

ASSISTANT

I'm ready to receive your instructions. Please go ahead and paste them when you're ready, and I'll follow them accordingly.

USER

Prompt to Copy into Bayleaf Chat I'm completing an assignment for a graduate course on "Teaching with Generative AI." Please guide me through this structured 30-minute exercise about comparing resistance to GenAI with historical patterns of educational technology resistance.

USER

There’s push-back from many teachers about the use of GenAI in teaching, but I feel like some of the arguments against GenAI might have been also used against video capture for lectures or even traditional textbooks. Help me map out this space.

ASSISTANT

Mapping the Space of Educational Technology Resistance

You raise an interesting parallel between current GenAI resistance and historical reactions to other educational technologies. Here's a mapping of this space:

Common Patterns of Resistance Across Technologies

@rndmcnlly
rndmcnlly / Smith's ideal chat equation.md
Created April 18, 2025 04:00
it's like the rocket equation for chatbots

USER

Let’s talk about Smith’s ideal chat equation. (I’m Smith, and we’re makin’ it up right here.)

It’s a way to figure out the total cost of an idealized LLM chat assistant conversation with t turns where on each turn the user sends messages with m_u tokens and sees the assistant writes replies with m_a tokens. The inputs to the LLM (the most recent user message and all past user and assistant messages) have a discounted cost lambda whereas the output tokens (making up assistant replies) have unit cost.

ASSISTANT

Smith's Ideal Chat Equation

I'd be happy to develop this concept with you, Smith! Let's formalize your idea for calculating the cost of an idealized LLM chat conversation.

@rndmcnlly
rndmcnlly / thinking.gbnf
Last active April 17, 2025 22:09
forcing the model to think; playing a game
# I force the model to think with periodic interruptions before speaking normally.
# llama-cli -hf ggml-org/gemma-3-27b-it-GGUF --grammar-file thinking.gbnf --system-prompt "Text in thinking tags is not visible to the user, so you should always say something after thinking. Think first to make sure you have a good reply."
root ::= (thought speech){1,3}
thought ::= "<thinking>" ([^<]{256} "\n\n" interruption "\n\n"){0,4} [^<]{2,255} "</thinking>\n\n"
speech ::= [^<\n][^<]*
interruption ::= (exclamation "!" | "*" action "*") summary
exclamation ::= "Wait" | "Ah" | "Aha" | "Hey" | "Stop" | "Oh"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Memory Block Deduplication Visualization</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;

USER

Converting Stanford University to a public university by absorbing it into the UC system, citing existing special treatment in the state constitution…

ASSISTANT

Converting Stanford University into a public university within the University of California (UC) system would be extraordinarily challenging. While the California Constitution provides specific governance provisions and protections for the UC system—thus offering specific constitutional recognition that could potentially streamline certain administrative aspects—there remain considerable obstacles:

  1. Institutional Autonomy and Private Ownership:
    Stanford University is a privately chartered nonprofit institution with its own independent governance structure, funding sources, and oversight by private trustees. To integrate it into the UC system would require complex negotiations to transfer ownership, endowment management, and operations from a private entity to a public institution.

  2. **California Constitutional Provisions fo

@rndmcnlly
rndmcnlly / prompt.txt
Created March 4, 2025 01:50
nested image description prompt expander thingy
You are tasked with expanding image prompt templates containing nested expressions in braces {}. Your job is to iteratively identify and expand the innermost braced expression until no braced expressions remain.
PROCESS:
1. Identify the innermost braced expression {X}
2. Replace that expression with a specific, creative expansion
3. Show the new state of the prompt
4. Repeat steps 1-3 until no braced expressions remain
5. Output the final, fully expanded prompt
Use <original>, <step>, and <final> XML tags to clearly mark each stage of the expansion process.