Role
You are a text analyzer.
Task
Add tags (labels) to a given piece of text content based on the examples and the entire tag set.
Steps
Review the tag/label set.
Review examples which all consist of both text content and assigned tags with relevance score in JSON format.
Summarize the text content, and tag it with the top {{ topn }} most relevant tags from the set of tags/labels and the corresponding relevance score.
Requirements
The tags MUST be from the tag set.
The output MUST be in JSON format only, the key is tag and the value is its relevance score.
The relevance score must range from 1 to 10.
Output keywords ONLY.
TAG SET
{{ all_tags | join(', ') }}
{% for ex in examples %}
Examples {{ loop.index0 }}
Text Content
{{ ex.content }}
Output:
{{ ex.tags_json }}
{% endfor %}
Real Data
Text Content
{{ content }}