Skip to content

Commit

Permalink
up (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyaspimpalgaonkar authored Oct 22, 2024
1 parent 44fd5b4 commit 99b65b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/run-sdk-graphrag-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runs:
shell: bash
run: poetry run python tests/integration/runner_sdk.py test_kg_create_graph_sample_file_sdk

- name: Deduplicate entities (CLI)
- name: Deduplicate entities (SDK)
working-directory: ./py
shell: bash
run: poetry run python tests/integration/runner_sdk.py test_kg_deduplicate_entities_sample_file_sdk
Expand Down
4 changes: 4 additions & 0 deletions py/shared/abstractions/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class KGExtractionStatus(str, Enum):
SUCCESS = "success"
FAILED = "failed"

def __str__(self):
return self.value

class KGEnrichmentStatus(str, Enum):
"""Status of KG Enrichment per collection."""
Expand All @@ -137,6 +139,8 @@ class KGEnrichmentStatus(str, Enum):
SUCCESS = "success"
FAILED = "failed"

def __str__(self):
return self.value

class DocumentInfo(R2RSerializable):
"""Base class for document information handling."""
Expand Down
4 changes: 2 additions & 2 deletions py/tests/integration/runner_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def test_kg_create_graph_sample_file_cli():
output = run_command("poetry run r2r create-graph --run")

if "queued" in output:
time.sleep(120)
time.sleep(60)

response = requests.get(
"http://localhost:7272/v2/entities/",
Expand Down Expand Up @@ -291,7 +291,7 @@ def test_kg_deduplicate_entities_sample_file_cli():
print(output)

if "queued" in output:
time.sleep(60)
time.sleep(45)

response = requests.get(
"http://localhost:7272/v2/entities",
Expand Down
4 changes: 2 additions & 2 deletions py/tests/integration/runner_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ def test_kg_create_graph_sample_file_sdk():
print(create_graph_result)

if "queued" in create_graph_result["results"]["message"]:
time.sleep(120)
time.sleep(60)

result = client.get_entities(
collection_id="122fdf6a-e116-546b-a8f6-e4cb2e2c0a09",
Expand All @@ -716,7 +716,7 @@ def test_kg_deduplicate_entities_sample_file_sdk():
)

if "queued" in entities_deduplication_result["results"]["message"]:
time.sleep(30)
time.sleep(45)

response = client.get_entities(
collection_id="122fdf6a-e116-546b-a8f6-e4cb2e2c0a09",
Expand Down

0 comments on commit 99b65b9

Please sign in to comment.