Skip to content

Commit

Permalink
support chinese in json dump (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
IANTHEREAL authored Jan 16, 2025
1 parent c5ff5ec commit 3791bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/rag/knowledge_graph/graph_store/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_entity_description_embedding(
def get_entity_metadata_embedding(
metadata: Mapping[str, Any], embed_model: BaseEmbedding = None
) -> Embedding:
combined_text = json.dumps(metadata)
combined_text = json.dumps(metadata, ensure_ascii=False)
return get_text_embedding(combined_text, embed_model)


Expand Down

0 comments on commit 3791bd9

Please sign in to comment.