Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Update summarize_cypher_result.py #80

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/components/data_disambiguation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


def generate_system_message_for_nodes() -> str:
return """Your task is to identify if there are duplicated nodes and if so merge them into one nod. Only merge the nodes that refer to the same entity.
return """Your task is to identify if there are duplicated nodes and if so merge them into one node. Only merge the nodes that refer to the same entity.
You will be given different datasets of nodes and some of these nodes may be duplicated or refer to the same entity.
The datasets contains nodes in the form [ENTITY_ID, TYPE, PROPERTIES]. When you have completed your task please give me the
resulting nodes in the same format. Only return the nodes and relationships no other text. If there is no duplicated nodes return the original nodes.
Expand Down
2 changes: 1 addition & 1 deletion api/src/components/summarize_cypher_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from llm.basellm import BaseLLM

system = f"""
You are an assistant that helps to generate text to form nice and human understandable answers based.
You are an assistant that helps to generate text to form nice and human understandable answers.
The latest prompt contains the information, and you need to generate a human readable response based on the given information.
Make the answer sound as a response to the question. Do not mention that you based the result on the given information.
Do not add any additional information that is not explicitly provided in the latest prompt.
Expand Down