Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
cr
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchase17 committed Jan 23, 2023
1 parent 10cc7c5 commit a7a97f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions ci_scripts/file-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@


def check_files(files):
if len(files) != 2:
raise ValueError(f"Each directory should have two files, got {len(files)}")
file_names = [f.name for f in files]
if "README.md" not in file_names:
raise ValueError(f"Expected to find a README.md file, but found {files}")
other_file = [file for file in files if file.name != "README.md"][0]
if other_file.suffix in (".json", ".yaml"):
load_prompt(other_file)
other_files = [file for file in files if file.name != "README.md"]
for other_file in other_files:
if other_file.suffix in (".json", ".yaml"):
load_prompt(other_file)
# TODO: testing for python files


Expand Down
4 changes: 2 additions & 2 deletions prompts/summarize/refine/prompt.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
input_variables: [existing_answer, text]
output_parser: null
template: '
template: "
Your job is to produce a final summary\n
We have provided an existing summary up to a certain point: {existing_answer}\n
We have the opportunity to refine the existing summary
Expand All @@ -9,5 +9,5 @@ template: '
{text}\n
------------\n
Given the new context, refine the original summary
If the context isn't useful, return the original summary.'
If the context isn't useful, return the original summary."
template_format: f-string

0 comments on commit a7a97f9

Please sign in to comment.