<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: mechanical-turk</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/mechanical-turk.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2025-02-11T20:50:21+00:00</updated><author><name>Simon Willison</name></author><entry><title>llm-sort</title><link href="https://simonwillison.net/2025/Feb/11/llm-sort/#atom-tag" rel="alternate"/><published>2025-02-11T20:50:21+00:00</published><updated>2025-02-11T20:50:21+00:00</updated><id>https://simonwillison.net/2025/Feb/11/llm-sort/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/vagos/llm-sort"&gt;llm-sort&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Delightful &lt;a href="https://llm.datasette.io/"&gt;LLM&lt;/a&gt; plugin by Evangelos Lamprou which adds the ability to perform "semantic search" - allowing you to sort the contents of a file based on using a prompt against an LLM to determine sort order.&lt;/p&gt;
&lt;p&gt;Best illustrated by these examples from the README:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;llm sort --query "Which names is more suitable for a pet monkey?" names.txt

cat titles.txt | llm sort --query "Which book should I read to cook better?"
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It works using this pairwise prompt, which is executed multiple times using Python's &lt;code&gt;sorted(documents, key=functools.cmp_to_key(compare_callback))&lt;/code&gt; mechanism:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Given the query:
{query}

Compare the following two lines:

Line A:
{docA}

Line B:
{docB}

Which line is more relevant to the query? Please answer with "Line A" or "Line B".
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From &lt;a href="https://lobste.rs/s/yxlisx/llm_sort_sort_input_lines_semantically#c_enduz7"&gt;the lobste.rs comments&lt;/a&gt;, Cole Kurashige:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I'm not saying I'm prescient, but in The Before Times &lt;a href="https://github.com/cole-k/turksort"&gt;I did something similar&lt;/a&gt; with Mechanical Turk&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This made me realize that &lt;em&gt;so many&lt;/em&gt; of the patterns we were using against Mechanical Turk a decade+ ago can provide hints about potential ways to apply LLMs.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://lobste.rs/s/yxlisx/llm_sort_sort_input_lines_semantically"&gt;lobste.rs&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/mechanical-turk"&gt;mechanical-turk&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/plugins"&gt;plugins&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ai"&gt;ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/generative-ai"&gt;generative-ai&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llms"&gt;llms&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/llm"&gt;llm&lt;/a&gt;&lt;/p&gt;



</summary><category term="mechanical-turk"/><category term="plugins"/><category term="python"/><category term="ai"/><category term="generative-ai"/><category term="llms"/><category term="llm"/></entry><entry><title>Cheap, Easy Audio Transcription with Mechanical Turk</title><link href="https://simonwillison.net/2008/Sep/25/cheap/#atom-tag" rel="alternate"/><published>2008-09-25T18:37:12+00:00</published><updated>2008-09-25T18:37:12+00:00</updated><id>https://simonwillison.net/2008/Sep/25/cheap/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://waxy.org/2008/09/audio_transcription_with_mechanical_turk/"&gt;Cheap, Easy Audio Transcription with Mechanical Turk&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Andy Baio’s in-depth tutorial on submitting HITs to Mechanical Turk. I hadn’t realised how straight forward and powerful the interface has become.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/amazon"&gt;amazon&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/andy-baio"&gt;andy-baio&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/mechanical-turk"&gt;mechanical-turk&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/transcription"&gt;transcription&lt;/a&gt;&lt;/p&gt;



</summary><category term="amazon"/><category term="andy-baio"/><category term="mechanical-turk"/><category term="transcription"/></entry></feed>