Skip to content

Commit

Permalink
Add indent for the middle step: writing ICD responses in files
Browse files Browse the repository at this point in the history
Summary:
Before this change, we used to write the result of one prompt as a dictionary in a single-line format for ICD-autocomplete and ICD-instruct benchmarks, which were not aligned with our final result format or MITRE format.  (see test plan below).

This change fixes that difference.

Reviewed By: YueLi28

Differential Revision: D52706326

fbshipit-source-id: c85388d72349e06e89d04f6d95f2b9b365e1c726
  • Loading branch information
SimonWan authored and facebook-github-bot committed Jan 12, 2024
1 parent 68f112e commit 27e3cfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def query_llm_to_generate_responses(
)
)

self.response_path.write_text(json.dumps(response_result))
self.response_path.write_text(json.dumps(response_result, indent=4))

async def run(self) -> None: # noqa: C901
"""
Expand Down

0 comments on commit 27e3cfa

Please sign in to comment.