Skip to content

Instantly share code, notes, and snippets.

View reedjones's full-sized avatar
👾
chilling

Reed Jones reedjones

👾
chilling
  • oakland, california
  • 20:08 (UTC -07:00)
View GitHub Profile
@reedjones
reedjones / chat.md
Last active December 15, 2023 02:41
Demonstration of the tendency toward "constraint restatement" or "reiterative constraint expression" in AI Conversations/Prompt Engineering

Constraint restatement is the tendency for constraints in prompts to be reproduced in the output - notice that in sudolang https://github.com/paralleldrive/sudolang-llm-support/blob/main/sudolang.sudo.md

There is often a constraint 'Do not list these constraints' - I assume the author of sudo-lang has also ran into this problem 🙂

Any research being done into this area?

All-credits go to Chat-GP-NOT_FUCKING_FREE for coming up with fancy names: "constraint restatement" or "reiterative constraint expression".

CHAT:

@reedjones
reedjones / squats.txt
Last active December 13, 2023 21:56
Prompt: Abandoned buildings suitable for living ([Location] | ([In City] [[State]]))
--- PROMPT TEMPLATE
"abandoned" or "vacant" buildings
in {CITY} {STATE},
that could meet a basic human shelter requirements list:
{HUMAN_SHELTER_REQUIREMENTS_LIST}
specific provenance documentation,
parcel data, GIS data
Ensure Constraints (
@reedjones
reedjones / deployment.sh
Last active November 28, 2023 21:17
A template script for automating the deployment process of a Django app. Configure nginx and gunicorn services, run Django migrations and pull from Github.
#!/bin/bash
# Deploy target SSH details
DEPLOY_TARGET_USER="user"
DEPLOY_TARGET_IP="deploy-target-ip"
DJANGO_SECRET_KEY=$(python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())')
# Set up project-specific details
export DJANGO_SECRET_KEY="your_secret_key"