Skip to content

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

fix: Create pipeline regression issue (#348)

Chandrasekharan Md5d93c0be133
diff --git a/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py b/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py
index 64073c253..a945a7634 100644
--- a/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py
+++ b/backend/prompt_studio/prompt_studio_core/prompt_studio_helper.py
@@ -395,7 +395,7 @@ class PromptStudioHelper:
)
msg: str = (
f"Error while fetching response for "
- f"{prompt_name} with {doc_name}. {e}"
+ f"'{prompt_name}' with '{doc_name}'. {e}"
)
if isinstance(e, AnswerFetchError):
msg = str(e)
@@ -638,7 +638,7 @@ class PromptStudioHelper:
error_message = answer.get("error", "")
raise AnswerFetchError(
"Error while fetching response for "
- f"{prompt.prompt_key} with {doc_name}. {error_message}"
+ f"'{prompt.prompt_key}' with '{doc_name}'. {error_message}"
)
output_response = json.loads(answer["structure_output"])
return output_response
@@ -716,7 +716,9 @@ class PromptStudioHelper:
LogLevels.RUN,
f"Indexing failed : {e}",
)
- raise IndexingAPIError(f"Error while indexing {doc_name}. {str(e)}") from e
+ raise IndexingAPIError(
+ f"Error while indexing '{doc_name}'. {str(e)}"
+ ) from e
@staticmethod
def _fetch_single_pass_response(
diff --git a/backend/scheduler/helper.py b/backend/scheduler/helper.py
index 141df78f1..66a68da55 100644
--- a/backend/scheduler/helper.py
+++ b/backend/scheduler/helper.py
@@ -82,7 +82,7 @@ class SchedulerHelper:
)
except Exception as e:
logger.error(f"Exception while adding job: {e}")
- raise JobSchedulingError
+ raise JobSchedulingError from e
@staticmethod
def remove_job(pipeline_id: str) -> None:
diff --git a/backend/scheduler/serializer.py b/backend/scheduler/serializer.py
index bc0e32f42..ef19de11f 100644
--- a/backend/scheduler/serializer.py
+++ b/backend/scheduler/serializer.py
@@ -18,7 +18,6 @@ class JobKwargsSerializer(serializers.Serializer):
# url = serializers.URLField()
url = serializers.CharField(max_length=128)
headers = serializers.JSONField()
- params = serializers.JSONField()
data = serializers.JSONField()