mirror of
https://github.com/microsoft/graphrag.git
synced 2026-02-08 12:12:59 +08:00
optionally parse embeddings from df when creating CommunityReport
This commit is contained in:
parent
9c4619af43
commit
f0d779f81a
@ -63,6 +63,7 @@ def read_indexer_reports(
|
||||
final_community_reports: pd.DataFrame,
|
||||
final_nodes: pd.DataFrame,
|
||||
community_level: int,
|
||||
content_embedding_col: str | None = None,
|
||||
) -> list[CommunityReport]:
|
||||
"""Read in the Community Reports from the raw indexing outputs."""
|
||||
report_df = final_community_reports
|
||||
@ -83,7 +84,7 @@ def read_indexer_reports(
|
||||
id_col="community",
|
||||
short_id_col="community",
|
||||
summary_embedding_col=None,
|
||||
content_embedding_col=None,
|
||||
content_embedding_col=content_embedding_col,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user