Readit News logoReadit News
gdudeman commented on Anthropic's Prompt Engineering Tutorial (2024)   github.com/anthropics/pro... · Posted by u/cjbarber
gdudeman · 4 months ago
This is written for the 3 models (Sonnet, Haiku, Opus 3). While some lessons will be relevant today, others will not be useful or necessary on smarter, RL’d models like Sonnet 4.5.

> Note: This tutorial uses our smallest, fastest, and cheapest model, Claude 3 Haiku. Anthropic has two other models, Claude 3 Sonnet and Claude 3 Opus, which are more intelligent than Haiku, with Opus being the most intelligent.

gdudeman commented on Claude Code 2.0   npmjs.com/package/@anthro... · Posted by u/polyrand
freeqaz · 4 months ago
That's not just them saving it locally to like `~/.claude/conversations`? Feels weird if all conversations are uploaded to the cloud + retained forever.
gdudeman · 4 months ago
Ooo - good question. I'm unsure on this one.
gdudeman commented on Claude Code 2.0   npmjs.com/package/@anthro... · Posted by u/polyrand
jmward01 · 4 months ago
"When you use Claude Code, we collect feedback, which includes usage data (such as code acceptance or rejections), associated conversation data, and user feedback submitted via the /bug command."

So I can opt out of training, but they still save the conversation? Why can't they just not use my data when I pay for things. I am tired of paying, and then them stealing my information. Tell you what, create a free tier that harvests data as the cost of the service. If you pay, no data harvesting.

gdudeman · 4 months ago
This enables the /resume command that lets you start mid-conversation again.

Storing the data is not the same as stealing. It's helpful for many use cases.

I suppose they should have a way to delete conversations though.

gdudeman commented on Claude Code 2.0   npmjs.com/package/@anthro... · Posted by u/polyrand
postalcoder · 4 months ago
I'm disappointed that they haven't done more to make the /resume command more usable. It's still useless for all intents and purposes.
gdudeman · 4 months ago
Resume is now a drop down menu at the top in the new VS Code plugin and it's much easier to read.
gdudeman commented on Claude Code 2.0   npmjs.com/package/@anthro... · Posted by u/polyrand
gdudeman · 4 months ago
> New native VS Code extension

Looks great, but it's kind of buggy:

- I can't figure out how to toggle thinking

- Have to click in the text box to write, not just anywhere in the Claude panel

- Have to click to reject edits

gdudeman commented on Sampling and structured outputs in LLMs   parthsareen.com/blog.html... · Posted by u/SamLeBarbare
minimaxir · 5 months ago
Google's Gemini API is a bit odd with structured outputs. If you specify an Application/JSON response mimetype, it will reliably respond with a consistent JSON output without any prompt engineering shenanigans. For my workflows, this setting plus providing a JSON Schema in the system prompt works even with complex schema.

The Gemini API has a canonical implementation of structured outputs where you can instead pass the JSON schema as a separate parameter to control the grammar more closely. However, this setting will reorder the JSON schema fields to be alphabetical beforehand, which is especially not desired behavior as the order of JSON fields in a schema is often very deliberate to control generation.

gdudeman · 5 months ago
I was burned by this for a while because I assumed structured output ordering would be preserved.

You can specify ordering in the Gemini API with propertyOrdering:

"propertyOrdering": ["recipeName", "ingredients"]

gdudeman commented on Fartscroll-Lid: An app that plays fart sounds when opening or closing a MacBook   github.com/iannuttall/far... · Posted by u/gaws
onlinehost · 5 months ago
I don't know why this reminded me of a really scumbag troll thing we would do on AIM/AOL. I guess because it involves sound and open/close.

If you remember using AOL or AIM(AOL Instant Messenger) there were sound effects for various "events" like "Welcome" or "You've got mail" when you got a new email.

AOL and AIM had "buddy lists" and there were sound effects when they came online or offline. Like a knocking sound and door closing sound.

In the early 2000s when cable and DSL was becoming more widespread, it became cool for people to leave their AOL/AIM accounts connected all the time. This generally meant a computer running usually in their house, bedroom, or living room. People would leave "Away Messages" sort of like a status on a social media timeline. I think Jack Dorsey said turning AIM away messages into a timeline was one of his original inspirations for making a social media app. Anyway

So someone opens Visual Basic and starts writing some code. It goes to the privacy preferences of their own account and checks "Don't allow anyone to see me online" and then clicks apply.

Now it checks "Allow everyone to see me online" and clicks apply.

What does this do for everyone on your buddy list?

They hear a constant rotation of WAV files like BuddyIn.wav BuddyOut.wav. Over and over.

you can hear in the first few seconds of this video https://www.youtube.com/watch?v=AQjfU4g6_SQ

gdudeman · 5 months ago
Even farther off topic, but this reminds me of the time my friends and I recorded a 3 minute long wav file that ended with a quiet “this is god. Can you hear me? I’d like to talk with you,” and set it to be the error sound on a friend’s PC.

Much hilarity ensued.

gdudeman commented on Claude Sonnet 4 now supports 1M tokens of context   anthropic.com/news/1m-con... · Posted by u/adocomplete
i_have_an_idea · 6 months ago
This sounds like the programmer equivalent of astrology.

> Build context for the work you're doing. Put lots of your codebase into the context window.

If you don’t say that, what do you think happens as the agent works on your codebase.

gdudeman · 6 months ago
You don't say that - you instruct the LLM to read files about X, Y, and Z. Putting the context in helps the agent plan better (next step) and write correct code (final step).

If you're asking the agent to do chunks of work, this will get better results than asking it to blindly go forth and do work. Anthropic's best practices guide says as much.

If you're asking the agent to create one method that accomplishes X, this isn't useful.

u/gdudeman

KarmaCake day583May 4, 2010View Original