Team Treehouse AI for Programmers Track 

  • Learn to prompt ChatGPT and other LLMs for bug bashing – ask for why as well as sample code. Ask for why a fix worked 

Taking Building with the Claude API. Notes from today

  • Code grader – can do format, eg. only regex, and valid syntax
  • Model grader – see if generated code is accurate and response clearly addressed user’s task
  • Model grader function example
def grade_by_model(test_case, output):
    # Create evaluation prompt
    eval_prompt = """
    You are an expert code reviewer. Evaluate this AI-generated solution.
    Task: {task}
    Solution: {solution}
    Provide your evaluation as a structured JSON object with:
    - "strengths": An array of 1-3 key strengths
    - "weaknesses": An array of 1-3 key areas for improvement  
    - "reasoning": A concise explanation of your assessment
    - "score": A number between 1-10
    """
    messages = []
    add_user_message(messages, eval_prompt)
    add_assistant_message(messages, "```json")
    eval_text = chat(messages, stop_sequences=["```"])
    return json.loads(eval_text)

The Feeling of Control Slipping Away

  • Mass layoffs and loss of agency on the internet feed anti-ai sentiment
  • “In builder circles, people deemed “high-agency” sit atop the hierarchy. They are individualistic, ambitious, focused. They just do things. They are especially adept at marshaling the use of people and machines alike. It is implied that those with high agency are, for now, insulated from becoming replaceable or irrelevant in a time of great precarity—not yet doomed to be part of “the permanent underclass,” another Bay Area coinage for the late adopters who will be left behind. How could a person hear such language and not feel at least a little paranoid?”
  • “Recently, the online-culture researcher Aidan Walker memorably described the user experience across much of the internet as akin to the user being cuckolded by the endless scroll.”  
  • “AI companies use the term human-in-the-loop to describe the relationship between humans and AI tools in everything including chatbots and warfare. The humans perform managerial tasks: They prompt, evaluate, approve, monitor, correct. Being in the loop is meant to sound active, but the truth is, beyond the prompt, what humans are so often doing is reacting to an interaction of multiple machines”
  • “The AI industry has ushered in an era of offshoring that’s as irresistible to some people as it is disorienting to others. What’s at stake is not just truth or trust, but also a sense of direction, orientation, and purpose for all of us. Do your own research became shorthand for the problem of the internet leading people to ivermectin hawkers and Pizzagate conspiracy theorists. But it could just as easily describe the thrill of autonomy promised by the open internet. We may miss it when we fully reckon with what comes next: a black-box machine of obscure corporate motivation that simply tells us, Here is the answer.”

Finished “Reverse PRD” – feeding it good old fashioned handwritten user stories, PRD template, and utilizing previous verbiage to build a traditional PRD to wrap up the NudgeAICoach experiment: https://github.com/bessiec/nudgeaicoach-for-students 

Re-reading The Second Machine Age and reading Empire of AI 

Posted in , ,

Leave a Reply