Spaces:
Sleeping
Sleeping
Update src/prompts.py
Browse files- src/prompts.py +5 -4
src/prompts.py
CHANGED
|
@@ -353,7 +353,9 @@ and value chain specific strategies in the last 10 years. Search only through th
|
|
| 353 |
|
| 354 |
Across all supplied policy documents and identified strategies determine:
|
| 355 |
|
| 356 |
-
1. Total number of documents examined
|
|
|
|
|
|
|
| 357 |
|
| 358 |
2. Number of documents where the value chain is discussed
|
| 359 |
|
|
@@ -458,7 +460,7 @@ OUTPUT FORMAT
|
|
| 458 |
}},
|
| 459 |
|
| 460 |
"strategic_commitment": {{
|
| 461 |
-
"documents_examined":
|
| 462 |
"documents_discussing_value_chain": 0,
|
| 463 |
"coverage_weight": 0,
|
| 464 |
|
|
@@ -509,13 +511,12 @@ def build_vc_analyzer_prompt(policy_docs:List,
|
|
| 509 |
value_chain:str,
|
| 510 |
domain:str
|
| 511 |
):
|
| 512 |
-
pol_docs = "\n- ".join(policy_docs)
|
| 513 |
return VALUE_CHAIN_PROMPT_TEMPLATE.format(
|
| 514 |
domain=domain,
|
| 515 |
value_chain=value_chain,
|
| 516 |
context=context,
|
| 517 |
policy_docs=pol_docs,
|
| 518 |
-
num_policy_docs=len(policy_docs)
|
| 519 |
)
|
| 520 |
|
| 521 |
def dict_to_string(d, indent=0):
|
|
|
|
| 353 |
|
| 354 |
Across all supplied policy documents and identified strategies determine:
|
| 355 |
|
| 356 |
+
1. Total number of documents examined
|
| 357 |
+
(always return the total number of documents included in the list above,
|
| 358 |
+
regardless of whether or not they include information related to the value chain)
|
| 359 |
|
| 360 |
2. Number of documents where the value chain is discussed
|
| 361 |
|
|
|
|
| 460 |
}},
|
| 461 |
|
| 462 |
"strategic_commitment": {{
|
| 463 |
+
"documents_examined": 0,
|
| 464 |
"documents_discussing_value_chain": 0,
|
| 465 |
"coverage_weight": 0,
|
| 466 |
|
|
|
|
| 511 |
value_chain:str,
|
| 512 |
domain:str
|
| 513 |
):
|
|
|
|
| 514 |
return VALUE_CHAIN_PROMPT_TEMPLATE.format(
|
| 515 |
domain=domain,
|
| 516 |
value_chain=value_chain,
|
| 517 |
context=context,
|
| 518 |
policy_docs=pol_docs,
|
| 519 |
+
# num_policy_docs=len(policy_docs)
|
| 520 |
)
|
| 521 |
|
| 522 |
def dict_to_string(d, indent=0):
|