Earlier quoted context omitted.
Yes, your last paragraph is absolutely the key to great output: instead of entering a discussion, refine the original prompt. It is much more token efficient, and gets rid of a lot of noise. I often start out with “proceed by asking me 5 questions that reduce ambiguity” or something like that, and then refine the original prompt. It seems like we’re all discovering similar patterns on how to interact with LLMs the be…
> It is much more token efficient Is it? Aren't input tokens are like 1000x cheaper than output tokens? That's why they can do this memory stuff in the first place.
Claude Memory
161–170 of 326 posts
Re: Claude Memory
#162Haven't done anything with memory so far, but I'm extremely sceptical. While a functional memory could be essential for e.g. more complex coding sessions with Claude Code, I don't want everything to contribute to it, in the same way I don't want my YouTube or Spotify recommendations to assume everything I watch or listen to is somehow something I actively like and want to have more of. A lot of my queries to Claude o…
I find it so annoying on Spotify when my daughter wants to listen to kids music, I have to navigate 5 clicks and scrolls to turn on privacy so her listening doesn't pollute my recommendations.
Re: Claude Memory
#163I don't use any of these type of LLM tools which basically amount to just a prompt you leave in place. They make it harder to refine my prompts and keep track of what is causing what in the outputs. I write very precise prompts every time. Also, I try not work out a problem over the course of several prompts back and forth. The first response is always the best and I try to one shot it every time. If I don't get what…
Could you share some suggestions or links on how to best craft such very precise prompts?
Depending on how much you know about LLMs, this might seem wasteful but it is in fact more efficient and will save you money if you pay by the token.
Re: Claude Memory
#164Re: Claude Memory
#165Earlier quoted context omitted.
Strong agree. For every time that I'd get a better answer if the LLM had a bit more context on me (that I didn't think to provide, but it 'knew') there seems to be a multiple of that where the 'memory' was either actually confounding or possibly confounding the best response. I'm sure OpenAI and Antropic look at the data, and I'm sure it says that for new / unsophisticated users who don't know how to prompt, that thi…
Both of you are missing a lot of use cases. Outside of HN, not everyone uses an LLM for programming. A lot of these people use it as a diary/journal that talks back or as a Walmart therapist.
Re: Claude Memory
#166Re: Claude Memory
#167Re: Claude Memory
#168Earlier quoted context omitted.
In what ways do humans differ when they think?
Humans think all the time (except when they’re watching TV). LLMs only “think” when it is streaming a response to you and then promptly forgets you exist. Then you send it your entire chat and it “auto-fills” the next part of the chat and streams it to you.
Re: Claude Memory
#169Earlier quoted context omitted.
The trick to do this well is to split the part of the prompt that might change and won't change. So if you are providing context like code, first have it read all of that, then (new message) give it instructions. This way that is written to the cache and you can reuse it even if you're editing your core prompt. If you make this one message, it's a cache miss / write every time you edit. You can edit 10 times for the…
Is Claude caching by whole message only? Pretty sure OpenAI caches up to the first differing character.
I believe (but not positive) there are 4 breakpoints.
1. End of tool definitions
2. End of system prompt
3. End of messages thread
4. (Least sure) 50% of the way through messages thread?
This is how I've seen it done in open source things / seems optimal based on constraints of anthropic API (max 4 breakpoints)
Re: Claude Memory
#170I don't use any of these type of LLM tools which basically amount to just a prompt you leave in place. They make it harder to refine my prompts and keep track of what is causing what in the outputs. I write very precise prompts every time. Also, I try not work out a problem over the course of several prompts back and forth. The first response is always the best and I try to one shot it every time. If I don't get what…