Yassine Mhirsi
commited on
Commit
·
0ab4347
1
Parent(s):
7a0be7b
fix: Clarify topic extraction instructions in the TopicService to specify that the output should be a single sentence capturing the main idea.
Browse files
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
|
| 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.
|
| 83 |
|
| 84 |
Examples:
|
| 85 |
- Text: "Governments should subsidize electric cars to encourage adoption."
|