Replies: 1 comment
-
Hey @sanjayc2 sorry to here you have been having issues using the hosted version of Unstructured. I'm not too familiar with the self hosted version, but I did want to point you towards this PR deepset-ai/haystack-core-integrations#1416 to show that our Also to better help with debugging your code could you share the full code snippet you run? So what |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am trying to use the Unstructured file converter to read a local pdf file and convert it into Haystack Document. I had originally gotten a free tier from Unstructured, and used docker to use Unstructured locally. This worked fine, until I used up the free part..
Now, Unstructured is not supporting the free tier any longer. So, I'm using the hosted version. I believe the call below is the correct one to make; for the api key, I am using my personal key ID (not the free tier ID!) which I got after creating an Unstructured account. I thought all I needed was the api key but the below code errors out:
When I run this, and provide the api key the error I get is:
Converting files to Haystack Documents: 0it [00:00, ?it/s]INFO: Failed to process a request due to connection error - [Errno 11001] getaddrinfo failed. Attempting retry number 1 after sleep.
ERROR: Failed to partition the document.
I then thought I need to provide the api url in addition to the api key, but I've tried both the Unstructured Workflow Endpoint and Unstructured Partition Endpoint (from my Unstructured account) urls in turn, and the code is still erroring out. In one case I got:
Converting files to Haystack Documents: 0it [00:00, ?it/s]INFO: HTTP Request: GET https://api.unstructuredapp.io/general/docs "HTTP/1.1 200 OK"
INFO: HTTP Request: POST https://api.unstructuredapp.io/general/v0/general "HTTP/1.1 400 Bad Request"
ERROR: Failed to partition set 2.
In the other case, I got:
Converting files to Haystack Documents: 0it [00:00, ?it/s]INFO: HTTP Request: GET https://platform.unstructuredapp.io/general/docs "HTTP/1.1 404 Not Found"
ERROR: Failed to partition the document.
ERROR: Server responded with 404 - {"detail":"Not Found"}
I would really appreciate your help resolving this so that I can use Unstructured. Thanks in advance.
Sanjay
Beta Was this translation helpful? Give feedback.
All reactions