Spaces:
Runtime error
Runtime error
leandrocarneiro
commited on
Upload rag.py
Browse files
rag.py
CHANGED
@@ -94,8 +94,9 @@ class Rag:
|
|
94 |
If the pieces of text don't enough information about the question to create the news, just say that you need more sources of information, nothing more.
|
95 |
The news should have a title.
|
96 |
The news should be written in a formal language.
|
97 |
-
The source should not be in the news.
|
98 |
-
The news should have between {min_words} and {max_words} words
|
|
|
99 |
The news should be about the following context: <{context}>
|
100 |
Question: <{question}>
|
101 |
Answer here:"""
|
|
|
94 |
If the pieces of text don't enough information about the question to create the news, just say that you need more sources of information, nothing more.
|
95 |
The news should have a title.
|
96 |
The news should be written in a formal language.
|
97 |
+
The source of the news should not be in the news, just the text.
|
98 |
+
The news should have between {min_words} and {max_words} words.
|
99 |
+
The news should be written in Portuguese language.
|
100 |
The news should be about the following context: <{context}>
|
101 |
Question: <{question}>
|
102 |
Answer here:"""
|