Skip to content

Commit 2b7d289

Browse files
Fix encoding issue: Ensure non-ASCII characters are correctly represe… (#1446)
Fix encoding issue: Ensure non-ASCII characters are correctly represented in entity name key Co-authored-by: Alonso Guevara <[email protected]>
1 parent ae796b9 commit 2b7d289

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphrag/index/graph/extractors/summarize/description_summary_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ async def _summarize_descriptions_with_llm(
129129
self._summarization_prompt,
130130
name="summarize",
131131
variables={
132-
self._entity_name_key: json.dumps(items),
132+
self._entity_name_key: json.dumps(items, ensure_ascii=False),
133133
self._input_descriptions_key: json.dumps(
134134
sorted(descriptions), ensure_ascii=False
135135
),

0 commit comments

Comments
 (0)