Skip to content

Commit 88af7f8

Browse files
committed
Format
1 parent bd968f2 commit 88af7f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/graphrag/graphrag/index/workflows/create_base_text_units.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ def chunker_with_logging(row: pd.Series, row_index: int) -> Any:
7171
metadata = row.get("metadata", None)
7272
if prepend_metadata and metadata is not None:
7373
metadata = json.loads(metadata) if isinstance(metadata, str) else metadata
74-
row["chunks"] = [add_metadata(chunk, metadata, line_delimiter=".\n") for chunk in row["chunks"]]
74+
row["chunks"] = [
75+
add_metadata(chunk, metadata, line_delimiter=".\n")
76+
for chunk in row["chunks"]
77+
]
7578
tick()
7679
logger.info("chunker progress: %d/%d", row_index + 1, total_rows)
7780
return row

0 commit comments

Comments
 (0)