mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 00:57:23 +08:00
Format
This commit is contained in:
parent
bd968f2710
commit
88af7f8dc2
@ -71,7 +71,10 @@ def create_base_text_units(
|
||||
metadata = row.get("metadata", None)
|
||||
if prepend_metadata and metadata is not None:
|
||||
metadata = json.loads(metadata) if isinstance(metadata, str) else metadata
|
||||
row["chunks"] = [add_metadata(chunk, metadata, line_delimiter=".\n") for chunk in row["chunks"]]
|
||||
row["chunks"] = [
|
||||
add_metadata(chunk, metadata, line_delimiter=".\n")
|
||||
for chunk in row["chunks"]
|
||||
]
|
||||
tick()
|
||||
logger.info("chunker progress: %d/%d", row_index + 1, total_rows)
|
||||
return row
|
||||
|
||||
Loading…
Reference in New Issue
Block a user