Peterase commited on
Commit
61cb1f5
·
1 Parent(s): c2306f3

fix: generate real follow-up questions instead of q1/q2/q3 placeholders

Browse files
src/core/use_cases/rag_chat_use_case.py CHANGED
@@ -873,7 +873,9 @@ RULES:
873
  2. Cite every fact inline: [1], [2], etc.
874
  3. Translate non-English articles to English.
875
  4. Respond in English only.
876
- 5. End with: FOLLOW_UP: q1 | q2 | q3
 
 
877
 
878
  REQUIRED OUTPUT FORMAT (follow exactly):
879
 
@@ -1010,7 +1012,9 @@ RULES:
1010
  2. Cite every fact inline: [1], [2], etc.
1011
  3. Translate non-English articles to English.
1012
  4. Respond in English only.
1013
- 5. End with: FOLLOW_UP: q1 | q2 | q3
 
 
1014
 
1015
  REQUIRED OUTPUT FORMAT (follow exactly):
1016
 
 
873
  2. Cite every fact inline: [1], [2], etc.
874
  3. Translate non-English articles to English.
875
  4. Respond in English only.
876
+ 5. At the very end, after your summary, write exactly:
877
+ FOLLOW_UP: <first related question the user might want to ask next> | <second related question> | <third related question>
878
+ Example: FOLLOW_UP: What is Ethiopia's response to the Sudan border tensions? | How does the GERD affect Egypt's water supply? | What is the current state of the Tigray peace deal?
879
 
880
  REQUIRED OUTPUT FORMAT (follow exactly):
881
 
 
1012
  2. Cite every fact inline: [1], [2], etc.
1013
  3. Translate non-English articles to English.
1014
  4. Respond in English only.
1015
+ 5. At the very end, after your summary, write exactly:
1016
+ FOLLOW_UP: <first related question the user might want to ask next> | <second related question> | <third related question>
1017
+ Example: FOLLOW_UP: What is Ethiopia's response to the Sudan border tensions? | How does the GERD affect Egypt's water supply? | What is the current state of the Tigray peace deal?
1018
 
1019
  REQUIRED OUTPUT FORMAT (follow exactly):
1020