How to use my documents on azure blob storage for Q&A with Azure OpenAI?

Behrouz 11 Reputation points
2023-03-27T01:24:48.6033333+00:00

I'm using my Azure OpenAI API key to do a 'Completion' task (e.g., Q&A).

It works fine when I add my prompt as a text, but I was wondering if it could refer to a PDF file in my Azure blob storage?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,793 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,936 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. romungi-MSFT 44,951 Reputation points Microsoft Employee
    2023-03-27T10:34:34.6233333+00:00

    Behrouz Currently, the prompt input does not accept a document as input. It uses text as input to tokenize and pass to the API, so if you are planning to use a PDF document you need to extract the text from the document which needs to be passed as input to prompt and then use the API. With accurate prompt engineering you should be able to efficiently get the result from your model and with fine tuning the model it should further improve the response.

    To summarize, PDF file cannot be passed as direct input to the prompt as it is currently not supported.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.