-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
semantics: add link to chat with similar conversations
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...kage/TalkSemanticConversationBrowserPlugin.class/instance/chatWithSimilarConversations.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
actions | ||
chatWithSimilarConversations | ||
|
||
^ SemanticConversation newStreaming | ||
addSystemMessage: 'Read the following conversations on the Squeak mailing list, squeak-dev, and prepare to summarize them for answering a question:'; | ||
addUserMessage: ((similarConversations collect: [:ea | '```{1}```' format: {ea fullTextForSummary}]) joinSeparatedBy: String cr, String cr); | ||
addSystemMessage: 'The following message has been posted later on squeak-dev. Please read it to find out if any of the provided conversations from above are relevant to the new message:'; | ||
addUserMessage: self conversation fullTextForSummary; | ||
addSystemMessage: 'Briefly summarize each of the older conversations in the context of the new message. Each summary must be exactly one short sentence. Write each sentence on a new line and start each line with the subject of the original conversation. Focus on the outcomes of each conversation (i.e., gained insights/implemented code changes/unresolved issues) and not so much on people.'; | ||
addAssistantMessage: 'What would you like to know?'; | ||
open |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters