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

Commit 04db759

Browse files
authored
Upgrade python package (#42)
1 parent 8cc83ff commit 04db759

File tree

7 files changed

+87
-730
lines changed

7 files changed

+87
-730
lines changed
-354 KB
Binary file not shown.

backend/graphrag-wheel/note.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

backend/src/api/index_configuration.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,16 +272,13 @@ async def generate_prompts(storage_name: str, limit: int = 5):
272272
this_directory = os.path.dirname(
273273
os.path.abspath(inspect.getfile(inspect.currentframe()))
274274
)
275-
print("THIS DIRECTORY: ", this_directory)
276-
print("CWD: ", os.getcwd())
277275

278276
# write custom settings.yaml to a file and store in a temporary directory
279277
data = yaml.safe_load(open(f"{this_directory}/pipeline-settings.yaml"))
280278
data["input"]["container_name"] = sanitized_storage_name
281279
temp_dir = f"/tmp/{sanitized_storage_name}_prompt_tuning"
282280
shutil.rmtree(temp_dir, ignore_errors=True)
283281
os.makedirs(temp_dir, exist_ok=True)
284-
print(f"TEMP SETTINGS DIR: {temp_dir}")
285282
with open(f"{temp_dir}/settings.yaml", "w") as f:
286283
yaml.dump(data, f, default_flow_style=False)
287284

@@ -306,9 +303,6 @@ async def generate_prompts(storage_name: str, limit: int = 5):
306303
f"{temp_dir}/prompts" # will become a zip file with the name prompts.zip
307304
)
308305
shutil.make_archive(temp_archive, "zip", root_dir=temp_dir, base_dir="prompts")
309-
print(f"ARCHIVE: {temp_archive}.zip")
310-
for f in os.listdir(temp_dir):
311-
print(f"FILE: {f}")
312306

313307
def iterfile(file_path: str):
314308
with open(file_path, mode="rb") as file_like:

backend/src/meta_agent/community/retrieve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def read_community_info(
176176
relationships=relationships, entities=entities, ranking_attribute="rank"
177177
)
178178

179-
if covariate_df:
179+
if covariate_df is not None:
180180
claims = read_covariates(
181181
df=covariate_df,
182182
id_col="id",

notebooks/2-Advanced_Getting_Started.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529
"metadata": {},
530530
"outputs": [],
531531
"source": [
532-
"generate_prompts(storage_name=storage_name, limit=5, zip_file_name=\"prompts.zip\")\n",
532+
"generate_prompts(storage_name=storage_name, limit=1, zip_file_name=\"prompts.zip\")\n",
533533
"with ZipFile(\"prompts.zip\", \"r\") as zip_ref:\n",
534534
" zip_ref.extractall()"
535535
]

poetry.lock

Lines changed: 83 additions & 715 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "graphrag-solution-accelerator"
3-
version = "0.0.1"
3+
version = "0.1.1"
44
description = ""
55
authors = [
66
"Josh Bradley <[email protected]>",
@@ -46,7 +46,7 @@ environs = ">=9.5.0"
4646
fastapi = ">=0.110.0"
4747
fastparquet = ">=2023.10.1"
4848
fsspec = ">=2024.2.0"
49-
graphrag = {path = "backend/graphrag-wheel/graphrag-0.0.1-py3-none-any.whl"}
49+
graphrag = "==0.1.1"
5050
graspologic = ">=3.3.0"
5151
httpx = ">=0.25.2"
5252
kubernetes = ">=29.0.0"

0 commit comments

Comments
 (0)