Yassine Mhirsi commited on
Commit
77f9f6f
·
1 Parent(s): 0ab4347

fix: Update topic extraction instructions in TopicService to specify that the main idea should be captured in simple English.

Browse files
Files changed (1) hide show
  1. services/topic_service.py +1 -1
services/topic_service.py CHANGED
@@ -79,7 +79,7 @@ class TopicService:
79
  raise ValueError("Text cannot be empty")
80
 
81
  system_message = """You are an information extraction model.
82
- Extract a topic from the user text. The topic should be a single sentence that captures the main idea of the text.
83
 
84
  Examples:
85
  - Text: "Governments should subsidize electric cars to encourage adoption."
 
79
  raise ValueError("Text cannot be empty")
80
 
81
  system_message = """You are an information extraction model.
82
+ Extract a topic from the user text. The topic should be a single sentence that captures the main idea of the text in simple english.
83
 
84
  Examples:
85
  - Text: "Governments should subsidize electric cars to encourage adoption."