I want to search information in a PDF using longchain and embeddings. It's working fine with OpenAI, but when I am doing with Microsoft Open AI (Azure Cognitive services) is not working.
embeddings = OpenAIEmbeddings(
openai_api_base=[my_azure_openai_url],
openai_api_type="azure",
openai_api_key=[api_key],
openai_api_version="2022-12-01"
)
vectordb = Chroma.from_documents(pages, embedding=embeddings,
persist_directory=".")
And when I am passing embedding to Chroma, I got this error from Microsoft.
*" Too many inputs. The max number of inputs is 1. We hope to increase the number of inputs per request soon. Please contact us through an Azure support request at: https://go.microsoft.com/fwlink/?linkid=2213926 for further questions."
*
I tried to create a request, but all the request are fixed, you can' request anything ad-hoc.