Skip to content

Commit 082ce33

Browse files
fixing unit test failure
1 parent b8522dd commit 082ce33

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

synthetic_data_kit/core/create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def process_file(
3737
provider: Optional[str] = None,
3838
chunk_size: Optional[int] = None,
3939
chunk_overlap: Optional[int] = None,
40-
rolling_summary: bool = False,
40+
rolling_summary: Optional[bool] = False,
4141
) -> str:
4242
"""Process a file to generate content
4343

synthetic_data_kit/generators/qa_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self,
3333

3434
def generate_summary(self,
3535
document_text: str,
36-
rolling_summary: bool) -> str:
36+
rolling_summary: Optional[bool] = False) -> str:
3737
"""Generate a summary of the document"""
3838
verbose = os.environ.get('SDK_VERBOSE', 'false').lower() == 'true'
3939
if verbose:
@@ -322,7 +322,7 @@ def process_documents(self,
322322
documents: List[Dict[str, Any]],
323323
num_pairs: int = 25,
324324
verbose: bool = False,
325-
rolling_summary: bool = False) -> Dict[str, Any]:
325+
rolling_summary: Optional[bool] = False) -> Dict[str, Any]:
326326
"""Process a list of documents to generate QA pairs without rating"""
327327
# Set the verbose environment variable
328328
if verbose:

0 commit comments

Comments
 (0)