Spaces:
Sleeping
Sleeping
Update src/prompts.py
Browse files- src/prompts.py +4 -2
src/prompts.py
CHANGED
|
@@ -458,7 +458,7 @@ OUTPUT FORMAT
|
|
| 458 |
}},
|
| 459 |
|
| 460 |
"strategic_commitment": {{
|
| 461 |
-
"documents_examined": {
|
| 462 |
"documents_discussing_value_chain": 0,
|
| 463 |
"coverage_weight": 0,
|
| 464 |
|
|
@@ -509,11 +509,13 @@ def build_vc_analyzer_prompt(policy_docs:List,
|
|
| 509 |
value_chain:str,
|
| 510 |
domain:str
|
| 511 |
):
|
|
|
|
| 512 |
return VALUE_CHAIN_PROMPT_TEMPLATE.format(
|
| 513 |
domain=domain,
|
| 514 |
value_chain=value_chain,
|
| 515 |
context=context,
|
| 516 |
-
policy_docs=
|
|
|
|
| 517 |
)
|
| 518 |
|
| 519 |
def dict_to_string(d, indent=0):
|
|
|
|
| 458 |
}},
|
| 459 |
|
| 460 |
"strategic_commitment": {{
|
| 461 |
+
"documents_examined": {num_policy_docs},
|
| 462 |
"documents_discussing_value_chain": 0,
|
| 463 |
"coverage_weight": 0,
|
| 464 |
|
|
|
|
| 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):
|