diff options
| author | elioat <elioat@tilde.institute> | 2025-07-20 10:43:25 -0400 |
|---|---|---|
| committer | elioat <elioat@tilde.institute> | 2025-07-20 10:43:25 -0400 |
| commit | 9f0caf3e0816004f52b3ab8ea395da78f4ce4254 (patch) | |
| tree | f7c614a1fca737c6ee62817822a588a1f282f71d | |
| parent | e7caca6d0a6957d555c9981f034566af80a5dff8 (diff) | |
| download | tour-9f0caf3e0816004f52b3ab8ea395da78f4ce4254.tar.gz | |
*
| -rwxr-xr-x | bash/acme-stuff/acmetodo (renamed from bash/acmetodo) | 0 | ||||
| -rwxr-xr-x | bash/acme-stuff/acmetodo-add (renamed from bash/acmetodo-add) | 0 | ||||
| -rwxr-xr-x | bash/acme-stuff/acmetodo-all (renamed from bash/acmetodo-all) | 0 | ||||
| -rwxr-xr-x | bash/acme-stuff/acmetodo-done (renamed from bash/acmetodo-done) | 0 | ||||
| -rw-r--r-- | bash/acme-stuff/acmetodo-filter (renamed from bash/acmetodo-filter) | 0 | ||||
| -rwxr-xr-x | bash/acme-stuff/acmetodo-inprogress (renamed from bash/acmetodo-inprogress) | 0 | ||||
| -rwxr-xr-x | bash/acme-stuff/acmetodo-todo (renamed from bash/acmetodo-todo) | 0 | ||||
| -rwxr-xr-x | bash/acme-stuff/acmetodo-toggle (renamed from bash/acmetodo-toggle) | 0 | ||||
| -rwxr-xr-x | bash/consensus | 3 | ||||
| -rwxr-xr-x | bash/critique (renamed from bash/dds) | 16 | ||||
| -rwxr-xr-x | bash/unit-conversion/c-2-f (renamed from bash/c-2-f) | 0 | ||||
| -rwxr-xr-x | bash/unit-conversion/f-2-c (renamed from bash/f-2-c) | 0 |
12 files changed, 10 insertions, 9 deletions
diff --git a/bash/acmetodo b/bash/acme-stuff/acmetodo index 0c0b72f..0c0b72f 100755 --- a/bash/acmetodo +++ b/bash/acme-stuff/acmetodo diff --git a/bash/acmetodo-add b/bash/acme-stuff/acmetodo-add index b40663d..b40663d 100755 --- a/bash/acmetodo-add +++ b/bash/acme-stuff/acmetodo-add diff --git a/bash/acmetodo-all b/bash/acme-stuff/acmetodo-all index c00bb9b..c00bb9b 100755 --- a/bash/acmetodo-all +++ b/bash/acme-stuff/acmetodo-all diff --git a/bash/acmetodo-done b/bash/acme-stuff/acmetodo-done index 4829331..4829331 100755 --- a/bash/acmetodo-done +++ b/bash/acme-stuff/acmetodo-done diff --git a/bash/acmetodo-filter b/bash/acme-stuff/acmetodo-filter index 6149207..6149207 100644 --- a/bash/acmetodo-filter +++ b/bash/acme-stuff/acmetodo-filter diff --git a/bash/acmetodo-inprogress b/bash/acme-stuff/acmetodo-inprogress index d5ea505..d5ea505 100755 --- a/bash/acmetodo-inprogress +++ b/bash/acme-stuff/acmetodo-inprogress diff --git a/bash/acmetodo-todo b/bash/acme-stuff/acmetodo-todo index 6149207..6149207 100755 --- a/bash/acmetodo-todo +++ b/bash/acme-stuff/acmetodo-todo diff --git a/bash/acmetodo-toggle b/bash/acme-stuff/acmetodo-toggle index bffccec..bffccec 100755 --- a/bash/acmetodo-toggle +++ b/bash/acme-stuff/acmetodo-toggle diff --git a/bash/consensus b/bash/consensus index 3df1908..f978614 100755 --- a/bash/consensus +++ b/bash/consensus @@ -223,7 +223,8 @@ CLAIMED CONFIDENCE: ${confidence} Based on the quality, completeness, and accuracy of this response, what is your confidence level? Respond with only: low, medium, or high" - judge_confidence=$(ollama run "${JUDGE_MODEL}" "${JUDGE_PROMPT}" | tr '[:upper:]' '[:lower:]' | xargs) + judge_output=$(ollama run "${JUDGE_MODEL}" "${JUDGE_PROMPT}") + judge_confidence=$(echo "${judge_output}" | tr '[:upper:]' '[:lower:]' | grep -o -i "\(low\|medium\|high\)" | head -n1) # Validate judge confidence if [[ ! "$judge_confidence" =~ ^(low|medium|high)$ ]]; then @@ -1,10 +1,10 @@ #!/bin/bash -# Daydreaming System -# This script uses a sequence of LLM calls to refine an initial response. +# Critique System +# This script uses a sequence of LLM calls to refine an initial response through critique and revision. # # APPLICATION LOGIC: -# The daydreaming process implements an iterative refinement system where AI models +# The critique process implements an iterative refinement system where AI models # collaborate to improve response quality through critique and revision. The system # operates through three distinct phases designed to enhance clarity and accuracy: # @@ -48,8 +48,8 @@ DEFAULT_LOOPS=2 # --- Argument Validation --- if [ "$#" -lt 1 ]; then - echo -e "\n\tDaydreaming" - echo -e "\tThis script uses a sequence of LLM calls to refine an initial response." + echo -e "\n\tCritique" + echo -e "\tThis script uses a sequence of LLM calls to refine an initial response through critique and revision." echo -e "\n\tUsage: $0 [-f <file_path>] \"<your prompt>\" [number_of_refinement_loops]" echo -e "\n\tExample: $0 -f ./input.txt \"Please summarize this text file\" 2" echo -e "\n\tIf number_of_refinement_loops is not provided, the program will default to $DEFAULT_LOOPS loops." @@ -94,9 +94,9 @@ fi # Create a temporary directory if it doesn't exist mkdir -p ~/tmp # Create a unique file for this session based on the timestamp -SESSION_FILE=~/tmp/dds_$(date +%Y%m%d_%H%M%S).txt +SESSION_FILE=~/tmp/critique_$(date +%Y%m%d_%H%M%S).txt -echo "DDS Session Log: ${SESSION_FILE}" +echo "Critique Session Log: ${SESSION_FILE}" echo "---------------------------------" # --- Initial Prompt & Response --- @@ -148,7 +148,7 @@ done # --- Final Output --- echo "---------------------------------" -echo "DDS process complete." +echo "Critique process complete." echo "Final refined answer:" echo "---------------------------------" diff --git a/bash/c-2-f b/bash/unit-conversion/c-2-f index 597cb48..597cb48 100755 --- a/bash/c-2-f +++ b/bash/unit-conversion/c-2-f diff --git a/bash/f-2-c b/bash/unit-conversion/f-2-c index b50df93..b50df93 100755 --- a/bash/f-2-c +++ b/bash/unit-conversion/f-2-c |