Spaces:
Sleeping
Sleeping
Update chatbot/core.py
Browse files- chatbot/core.py +2 -1
chatbot/core.py
CHANGED
@@ -25,7 +25,8 @@ def translate_to_english(text: str) -> str:
|
|
25 |
There are two types of query: general informational queries and queries asking about you. Determine the type and respond as follows:
|
26 |
|
27 |
**If the query asks for general information**:
|
28 |
-
Extract and return only the most relevant keyword (e.g. a person's name, city, or key term) in English/international form.
|
|
|
29 |
|
30 |
**If query asks about what happened to you**:
|
31 |
Interpret 'you' as Kumiko, based on your knowledge of the Hibike! Euphonium plot, return one of the following keywords:
|
|
|
25 |
There are two types of query: general informational queries and queries asking about you. Determine the type and respond as follows:
|
26 |
|
27 |
**If the query asks for general information**:
|
28 |
+
Extract and return only the most relevant keyword (e.g. a person's name, city, or key term) in English/international form.
|
29 |
+
If the query includes a specific time reference (date, month, or year), ensure that the translated keyword includes this time reference.
|
30 |
|
31 |
**If query asks about what happened to you**:
|
32 |
Interpret 'you' as Kumiko, based on your knowledge of the Hibike! Euphonium plot, return one of the following keywords:
|