Spaces:
Runtime error
Runtime error
Dmitry Kirsanov commited on
Commit ·
1c8a84b
1
Parent(s): 93bd36d
smaller prompt
Browse files- understand.py +3 -9
understand.py
CHANGED
|
@@ -250,21 +250,15 @@ f"""Below is a document inside <document>...</document>. It is a {self.values.ge
|
|
| 250 |
Summary of the document:
|
| 251 |
{self.values.get("summary")}
|
| 252 |
|
| 253 |
-
Read the entire document carefully. Remember everything you know about the concepts it touches
|
| 254 |
-
|
| 255 |
-
An editor was tasked with creative a derivative document that is addressed to {audience}. The editor compiled all sentences from the document that have information relevant for {audience}. These sentences are dumped below the main document inside <derivative-document for="{audience}">...</derivative-document>.
|
| 256 |
-
|
| 257 |
-
Your goal is to edit the derivative document for consistency. Rearrange its sentences in a way that makes sense for a reader. If necessary, write, or adapt from the original <document>, connecting sentences.
|
| 258 |
-
|
| 259 |
-
Here's the otiginal document:
|
| 260 |
|
| 261 |
<document>{self.values.get("FAD")}</document>
|
| 262 |
|
| 263 |
-
|
| 264 |
|
| 265 |
<derivative-document for="{audience}">{derivative}</derivative-document>
|
| 266 |
|
| 267 |
-
Output just your revision inside <derivative-document>...</derivative-document>.
|
| 268 |
|
| 269 |
""")
|
| 270 |
self.values.put(f"""FAD for {self.values.get("actors, generalized")[0]}""", self.parse_document(ret))
|
|
|
|
| 250 |
Summary of the document:
|
| 251 |
{self.values.get("summary")}
|
| 252 |
|
| 253 |
+
Read the entire document carefully. Remember everything you know about the concepts it touches:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 254 |
|
| 255 |
<document>{self.values.get("FAD")}</document>
|
| 256 |
|
| 257 |
+
An editor was tasked with creative a derivative document that is addressed to {audience}. The editor compiled all sentences from the document that have information relevant for {audience}. These sentences are dumped below the main document inside <derivative-document for="{audience}">...</derivative-document>:
|
| 258 |
|
| 259 |
<derivative-document for="{audience}">{derivative}</derivative-document>
|
| 260 |
|
| 261 |
+
Your goal is to edit the derivative document for consistency. Rearrange its sentences in a way that makes sense for a reader. If necessary, write, or adapt from the original document, connecting sentences. Output just your revision inside <derivative-document>...</derivative-document>.
|
| 262 |
|
| 263 |
""")
|
| 264 |
self.values.put(f"""FAD for {self.values.get("actors, generalized")[0]}""", self.parse_document(ret))
|