Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自动生成对话标题 #30

Open
muhanstudio opened this issue Aug 8, 2024 · 3 comments
Open

自动生成对话标题 #30

muhanstudio opened this issue Aug 8, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@muhanstudio
Copy link

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

@flyun
Copy link
Owner

flyun commented Aug 9, 2024

可以,不过我看下其他软件的实现原理,比较耗费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获取为对话的标题,也就是说所有对话都要发送两次。

@muhanstudio
Copy link
Author

可以,不过我看下其他软件的实现原理,比较耗费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
Copy link
Owner

flyun commented Aug 9, 2024

可以,不过我看下其他软件的实现原理,比较耗费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 flyun added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants