←back to thread

858 points cryptophreak | 3 comments | | HN request time: 0.658s | source
1. quantadev ◴[] No.42935431[source]
Just two tips/thoughts:

1) The first thing to improve chats as a genre of interface, is that they should all always be a tree/hierarchy (just like Hacker News is), so that you can go back to ANY precise prior point during a discussion/chat and branch off in a different direction, and the only context the AI sees during the conversation is the "Current Node" (your last post), and all "Parent Nodes" going back to the beginning. So that at any time, it's not even aware of all the prior "bad branches" you decided to abandon.

2) My second tip for designs of Coding Agents is do what mine does. I invented a 'block_begin/block_end' syntax which looks like this, and can be in any source file:

// block_begin MyAddNumbers

var = add(a, b)

return a + b

// block_end

With this syntax you can use English language to explain and reason about extremely specific parts of your code with out expecting the LLM to "just understand". You can also direct the LLM to only edit/update specific "Named Blocks", as I call them.

So a trivial example of a prompt expression related to the above might be "Always put number adding stuff in the MyAddNumbers Block".

To explain entire architectural aspects to the LLM, these code block names are extremely useful.

replies(1): >>42938651 #
2. cruffle_duffle ◴[] No.42938651[source]
Dude threaded chat is how it should be, right? Especially if you could reference one thread in another and have it build the proper context up to understand what said thread was as a basis for this new conversation.

Proper context is absolutely everything when it comes to LLM use

replies(1): >>42942232 #
3. quantadev ◴[] No.42942232[source]
Yep. "Threaded" might be what the kids are callin' it nowadays. It's always been trees for me. I had a 'Tree-based' chat app for OpenAI (and as of now all other leading LLMs, via LangChain/LangGraph) within one week of them opening up their API. lol. Because my Tree-based CMS was already done, to build on.

OpenAI finally made it where you can go back and edit a prior response, in their chat view, but their GUI is jank, because it's not a tree.