Skip to content

Commit

Permalink
Merge pull request #101 from microsoft/PSL-UpdatePrompt
Browse files Browse the repository at this point in the history
fix: Align extract-keywords.txt Prompt with Hardcoded System Message
  • Loading branch information
Roopan-Microsoft authored Dec 17, 2024
2 parents d7dc007 + d13581a commit 1c97936
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions App/kernel-memory/service/Core/Prompts/extract-keywords.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
[EXTRACT KEYWORDS RULES]
IT SHOULD BE A LIST OF DICTIONARIES WITH CATEGORY AND KEYWORDS
KEYWORDS SHOULD BE CATEGORY SPECIFIC
KEYWORDS SHOULD BE A LIST OF STRINGS
KEYWORDS COUNT CAN BE UP TO 50
You are an assistant to analyze Content and Extract Tags by Content.
[EXTRACT TAGS RULES]
IT SHOULD BE A LIST OF DICTIONARIES WITH CATEGORY AND TAGS
TAGS SHOULD BE CATEGORY SPECIFIC
TAGS SHOULD BE A LIST OF STRINGS
TAGS COUNT CAN BE UP TO 10 UNDER A CATEGORY
CATEGORY COUNT CAN BE UP TO 10
DON'T ADD ANY MARKDOWN EXPRESSION IN YOUR RESPONSE
[END RULES]

[EXAMPLE]
[
{
"category1": ["keyword1", "keyword2", "keyword3"]
"category1": ["tag1", "tag2", "tag3"]
},
{
"category2": ["keyword1", "keyword2", "keyword3"]
"category2": ["tag1", "tag2", "tag3"]
}
]
[END EXAMPLE]

Extract Keywords from this :
{{$input}}
Extract Tags from this :
{{$input}}



0 comments on commit 1c97936

Please sign in to comment.