Skip to content

Commit

Permalink
fix: check chat_message.graph_data is None
Browse files Browse the repository at this point in the history
  • Loading branch information
Mini256 committed Dec 9, 2024
1 parent 1c823d8 commit f588f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/rag/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ def get_graph_data_from_chat_message(
session: Session,
chat_message: ChatMessage
) -> Tuple[list[dict], list[dict]]:
if not chat_message.content:
if not chat_message.graph_data:
return [], []

if "relationships" not in chat_message.graph_data:
Expand Down

0 comments on commit f588f04

Please sign in to comment.