Skip to content

Commit

Permalink
Adjust SWE-bench script to code graph pipeline call
Browse files Browse the repository at this point in the history
  • Loading branch information
alekszievr committed Jan 9, 2025
1 parent 626bc76 commit 18bb282
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions evals/eval_swe_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ def check_install_package(package_name):

async def generate_patch_with_cognee(instance, llm_client, search_type=SearchType.CHUNKS):
repo_path = download_github_repo(instance, "../RAW_GIT_REPOS")
pipeline = await run_code_graph_pipeline(repo_path)

async for result in pipeline:
async for result in run_code_graph_pipeline(repo_path, include_docs=True):
print(result)

print("Here we have the repo under the repo_path")
Expand All @@ -47,7 +46,9 @@ async def generate_patch_with_cognee(instance, llm_client, search_type=SearchTyp
instructions = read_query_prompt("patch_gen_kg_instructions.txt")

retrieved_edges = await brute_force_triplet_search(
problem_statement, top_k=3, collections=["data_point_source_code", "data_point_text"]
problem_statement,
top_k=3,
collections=["code_summary_text"],
)

retrieved_edges_str = retrieved_edges_to_string(retrieved_edges)
Expand Down

0 comments on commit 18bb282

Please sign in to comment.