chatAir icon indicating copy to clipboard operation
chatAir copied to clipboard

自动生成对话标题

Open muhanstudio opened this issue 1 year ago • 3 comments

提一个比较常见的功能,自动为对话生成标题,可以让使用者自定义一个模型或者使用当前模型为对话生成标题,然后替换修改当前标题

muhanstudio avatar Aug 08 '24 20:08 muhanstudio

可以,不过我看下其他软件的实现原理,比较耗费token。

以typemind举例,他的生成标题的prompt是

What would be a short and relevant title for this chat? You must strictly answer with only the title, no other text is allowed.\n\nAnswer in Mandarin

生成标题的方式以当前发送的聊天内容,通过生成标题的promp获取为对话的标题,也就是说所有对话都要发送两次。

flyun avatar Aug 09 '24 03:08 flyun

可以,不过我看下其他软件的实现原理,比较耗费token。

以typemind举例,他的生成标题的prompt是

What would be a short and relevant title for this chat? You must strictly answer with only the title, no other text is allowed.\n\nAnswer in Mandarin

生成标题的方式以当前发送的聊天内容,通过生成标题的promp获取为对话的标题,也就是说所有对话都要发送两次。

目前比较大众的方式还是只把第一句话带着生成标题的prompt发送给AI,然后标题就确定了,除非手动更改,按照这种方式生成标题的话,可能1000条标题连一块钱也不到

muhanstudio avatar Aug 09 '24 04:08 muhanstudio

可以,不过我看下其他软件的实现原理,比较耗费token。 以typemind举例,他的生成标题的prompt是

What would be a short and relevant title for this chat? You must strictly answer with only the title, no other text is allowed.\n\nAnswer in Mandarin

生成标题的方式以当前发送的聊天内容,通过生成标题的promp获取为对话的标题,也就是说所有对话都要发送两次。

目前比较大众的方式还是只把第一句话带着生成标题的prompt发送给AI,然后标题就确定了,除非手动更改,按照这种方式生成标题的话,可能1000条标题连一块钱也不到

之后会按照这个方案,会加个开关,自由选择是否打开

flyun avatar Aug 09 '24 05:08 flyun