convert edge to string
This commit is contained in:
parent
8edfe7c5a4
commit
8f241fa6c5
2 changed files with 4 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
|||
I need you to solve this issue by looking at the provided knowledge graph and
|
||||
generating a single patch file that I can apply directly to this repository using git apply.
|
||||
I need you to solve this issue by looking at the provided edges retrieved from a knowledge graph and
|
||||
generate a single patch file that I can apply directly to this repository using git apply.
|
||||
Please respond with a single patch file in the following format.
|
||||
|
|
@ -29,7 +29,8 @@ from evals.eval_utils import (delete_repo, download_github_repo,
|
|||
|
||||
def node_to_string(node):
|
||||
text = node.attributes["text"]
|
||||
return f"Node({node.id}, {text})"
|
||||
type = node.attributes["type"]
|
||||
return f"Node(id: {node.id}, type: {type}, description: {text})"
|
||||
def retrieved_edges_to_string(retrieved_edges):
|
||||
edge_strings = []
|
||||
for edge in retrieved_edges:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue