Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

Re-indexing issue fix (#337)

Gayathri5e2d8595f7d7
diff --git a/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py b/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py
index b66796a19..69fd5ba5b 100644
--- a/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py
+++ b/backend/prompt_studio/prompt_studio_index_manager/prompt_studio_index_helper.py
@@ -27,7 +27,6 @@ class PromptStudioIndexHelper:
args: dict[str, str] = dict()
args["document_manager"] = document
args["profile_manager"] = profile_manager
- args[index_id] = doc_id
try:
# Create or get the existing record for this document and
@@ -50,6 +49,7 @@ class PromptStudioIndexHelper:
if doc_id not in index_ids:
index_ids_list.append(doc_id)
+ args[index_id] = doc_id
args["index_ids_history"] = json.dumps(index_ids_list)
# Update the record with the index id