llm icon indicating copy to clipboard operation
llm copied to clipboard

[FR] Resume partial conversations

Open ethanj801 opened this issue 7 months ago • 1 comments

I often find myself wanting to modify some recent prompt while maintaining most of the previous conversation. (e.g. I have asked for a list of 10 ideas, then I ask for an elaboration on one of the ideas and decide that it is not to my liking and want to ask about the other idea without keeping the other response in context). One way this maybe could be implemented would be to add an additional two properties to the logged LLM chats. The first would just be an additional conversation specific id key (since currently all conversations have the same key) and the second would be a backwards link to the previous completions/prompts. That way you could resume a chat from any arbitrary points just by calling llm -c -cid xxxxxxx -qid xxxxxx.

ethanj801 avatar Dec 02 '23 16:12 ethanj801