Using Perplexity AI API with attached files #76
Replies: 3 comments 1 reply
-
We don't have file uploads in the API today. You will have to send in the text of your PDF in the prompt. |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem. I actually converted my context text into a json object.. the api seems to disregard the stringified version of the object when passed into the system or user prompt.. |
Beta Was this translation helpful? Give feedback.
-
Same. no pdf files - no need to use the api |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to use the Perplexity AI API to send a request with attached files. My goal is to analyze the content of a PDF file via the API. However, when I attempt to attach a file through a URL or include the file in the body of the request, I encounter difficulties.
I tried sending the file's URL directly in the prompt, but the API doesn't seem to correctly process the content of the file. I'm unsure whether Perplexity AI directly supports attaching files in requests or via external URLs.
Is there a specific method for sending files to the API, or do I need to manually extract the content of the file and send it as text? Are there any limitations or additional configurations to consider when working with files and the API?
Thanks for any help or suggestions!
Abdoulaye
Beta Was this translation helpful? Give feedback.
All reactions