The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/promptflow/_core/flow_execution_context.py", line 182, in _invoke_tool_inner
return f(**kwargs)
File "/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/promptflow/tracing/_trace.py", line 556, in wrapped
output = func(*args, **kwargs)
File "/mnt/host/service/app/37099/requests/chat_with_pdf_20240729_140552_chat_with_pdf/build_index_tool.py", line 9, in build_index_tool
return create_faiss_index(pdf_path)
File "/mnt/host/service/app/37099/requests/chat_with_pdf_20240729_140552_chat_with_pdf/chat_with_pdf/build_index.py", line 57, in create_faiss_index
index.insert_batch(segments)
File "/mnt/host/service/app/37099/requests/chat_with_pdf_20240729_140552_chat_with_pdf/chat_with_pdf/utils/index.py", line 39, in insert_batch
vector = self.embedding.generate(text)
File "/mnt/host/service/app/37099/requests/chat_with_pdf_20240729_140552_chat_with_pdf/chat_with_pdf/utils/retry.py", line 21, in wrapper
return func(*args, **kwargs)
File "/mnt/host/service/app/37099/requests/chat_with_pdf_20240729_140552_chat_with_pdf/chat_with_pdf/utils/oai.py", line 119, in generate
return self.client.embeddings.create(
File "/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/openai/resources/embeddings.py", line 114, in create
return self._post(
File "/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/openai/_base_client.py", line 1266, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
File "/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/openai/_base_client.py", line 942, in request
return self._request(
File "/azureml-envs/prompt-flow/runtime/lib/python3.9/site-packages/openai/_base_client.py", line 1046, in _request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Unsupported data type
Please can you help me to resolve this issue when Executing the prompt flow bulk run in the chat_with_pdf_ci_dev_workflow. I have searched exhaustively for a solution and cannot seem to determine what is going wrong. I have followed the workshop guide, FAQ and "working with github flows".
Apologies if this is not the correct forum for such a request but there is no instructions provided for getting support (https://github.com/microsoft/llmops-promptflow-template/blob/main/SUPPORT.md) and I am really stumped/cannot successfully deploy the LLMOPS template.
Below is a summary of my issue, with sensitive information redacted:
Run Summary
Run Details
chat_with_pdf_20240729_140552_chat_with_pdfCompleted2024-07-29 14:06:19.212003+00:000:00:14.572418Run Metadata
chat_with_pdf_20240729_140552_chat_with_pdf2024-07-29T14:06:00.889680+00:00Completedchat_with_pdf_20240729_140552_chat_with_pdfbuild_id:10145832774azureml.promptflow.inputs_mapping:"math_question":"$data.question"azureml.promptflow.runtime_name:automaticazureml.promptflow.disable_trace:falseazureml.promptflow.session_id:c830a1b9a46730b77d57609a907e090cd91115d88070f2eeazureml.promptflow.definition_file_name:flow.dag.yamlazureml.promptflow.flow_lineage_id:d3534c65e5ee3a6a559789ba7cebd698fd2a289546e6aec92b4f5d23c8c1fe34azureml.promptflow.flow_definition_datastore_name:workspaceblobstoreazureml.promptflow.flow_definition_blob_path:LocalUpload/216811aaf8dfdf1f9ca6148b99925b0a/standard/flow.dag.yaml_azureml.evaluation_run:promptflow.BatchRunazureml.promptflow.snapshot_id:929e78db-5284-423a-86a5-67bff901a3dbazureml.promptflow.runtime_version:20240709.v1_azureml.evaluate_artifacts:[{"path": "instance_results.jsonl", "type": "table"}]azureml.promptflow.total_tokens:308azureml.promptflow.completion_tokens:9azureml.promptflow.prompt_tokens:299Creation Context
[REDACTED][REDACTED][REDACTED][REDACTED][REDACTED][REDACTED][REDACTED][REDACTED]Timing
2024-07-29T14:06:19.212003+00:002024-07-29T14:06:33.784421+00:0000:00:14.5724183Portal URL
Data
azureml:chat_with_pdf:2azureml://locations/australiaeast/workspaces/[REDACTED]/data/azureml_chat_with_pdf_20240729_140552_chat_with_pdf_output_data_flow_outputs/versions/1Error
UserErrorExecution failure in 'build_index_tool': (BadRequestError) Unsupported data type"totalChildRuns": 1, "userErrorChildRuns": 1, "systemErrorChildRuns": 0, "errorDetails": [{"code": "UserError/ToolExecutionError", "messageFormat": "Execution failure in 'node_name'.", "count": 1}]build_index_toolTool/__pf_main__ToolExecutionErrorToolExecutionErrorExecution failure in 'build_index_tool': (BadRequestError) Unsupported data type