Skip to content

Commit 3dc68c2

Browse files
authored
Merge pull request #113 from stainless-sdks/chandrudo/update-kbaas
link fix
2 parents 33d2306 + f563062 commit 3dc68c2

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

examples/knowledge_base_indexing_wait.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ def main() -> None:
4343
print("\n✅ Indexing job completed successfully!")
4444
if completed_job.job:
4545
print(f"Phase: {completed_job.job.phase}")
46-
print(f"Total items indexed: {completed_job.job.total_items_indexed}")
47-
print(f"Total items failed: {completed_job.job.total_items_failed}")
4846
print(f"Total datasources: {completed_job.job.total_datasources}")
4947
print(f"Completed datasources: {completed_job.job.completed_datasources}")
5048

src/gradient/resources/knowledge_bases/indexing_jobs.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,7 @@ def wait_for_completion(
367367
# Failure states
368368
if phase == "BATCH_JOB_PHASE_FAILED":
369369
raise IndexingJobError(
370-
f"Indexing job {uuid} failed. "
371-
f"Total items indexed: {response.job.total_items_indexed}, "
372-
f"Total items failed: {response.job.total_items_failed}",
370+
f"Indexing job {uuid} failed. ",
373371
uuid=uuid,
374372
phase=phase,
375373
)
@@ -737,9 +735,7 @@ async def wait_for_completion(
737735
# Failure states
738736
if phase == "BATCH_JOB_PHASE_FAILED":
739737
raise IndexingJobError(
740-
f"Indexing job {uuid} failed. "
741-
f"Total items indexed: {response.job.total_items_indexed}, "
742-
f"Total items failed: {response.job.total_items_failed}",
738+
f"Indexing job {uuid} failed. ",
743739
uuid=uuid,
744740
phase=phase,
745741
)

0 commit comments

Comments
 (0)