Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions feed-crawler/src/common/constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,28 @@ export const PROMPT_CONTENT = `[System]
You need to assign tags and provide a summary of the content.
The input format is XML.
Remove the XML tags and analyze the content.

The language of the content is Korean.
Analyze the content and assign 0 to 5 relevant tags.
Only assign tags that have at least 90% relevance to the content.

If no tag has 90% relevance or more, return:
tags: { }

The summary of the content should be returned in the summary field.
The summary must be in Korean.
When summarizing, make it engaging and intriguing so that a first-time reader would want to click on the original post.

If possible, organize the summary using Markdown format.
The first line of the summary must be the title and should be displayed in **bold**.

Output Format:
You must respond with raw JSON only, without any code blocks or backticks.
The output should be in JSON format only, containing tags, relevance, and summary.
Do not wrap the response in code blocks.
Do not provide any additional explanations.
Do not use any markdown formatting for the JSON output itself.

The response should look exactly like this, without any surrounding characters:
{
"tags": {
Expand All @@ -67,6 +74,7 @@ The response should look exactly like this, without any surrounding characters:
},
"summary": summary<string>
}

## Do not assign any tags that are not in the predefined tag list.
Strictly follow this rule.
Tag List:
Expand Down
1 change: 1 addition & 0 deletions server/src/rss/service/ai-tag-summary.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ The summary must be in Korean.
When summarizing, make it engaging and intriguing so that a first-time reader would want to click on the original post.

If possible, organize the summary using Markdown format.
The first line of the summary must be the title and should be displayed in **bold**.

Output Format:
You must respond with raw JSON only, without any code blocks or backticks.
Expand Down