We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1661672 commit 3d79de9Copy full SHA for 3d79de9
.semversioner/next-release/patch-20241106232311738461.json
@@ -0,0 +1,4 @@
1
+{
2
+ "type": "patch",
3
+ "description": "Raise error on empty deltas for inc indexing"
4
+}
graphrag/index/run/run.py
@@ -133,6 +133,11 @@ async def run_pipeline_with_config(
133
if is_update_run and update_index_storage:
134
delta_dataset = await get_delta_docs(dataset, storage)
135
136
+ # Fail on empty delta dataset
137
+ if delta_dataset.new_inputs.empty:
138
+ error_msg = "Incremental Indexing Error: No new documents to process."
139
+ raise ValueError(error_msg)
140
+
141
delta_storage = update_index_storage.child("delta")
142
143
# Run the pipeline on the new documents
0 commit comments