diff --git a/cognee/infrastructure/llm/prompts/patch_gen_instructions.txt b/cognee/infrastructure/llm/prompts/patch_gen_instructions.txt index 1553753ab..ebbb03f75 100644 --- a/cognee/infrastructure/llm/prompts/patch_gen_instructions.txt +++ b/cognee/infrastructure/llm/prompts/patch_gen_instructions.txt @@ -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. \ No newline at end of file diff --git a/evals/eval_swe_bench.py b/evals/eval_swe_bench.py index c16e821fa..80fa35623 100644 --- a/evals/eval_swe_bench.py +++ b/evals/eval_swe_bench.py @@ -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: