Questions tagged [azure-openai]
147 questions
8
votes
6 answers
How to do function calling using Azure OpenAI
Here is my code
response = openai.ChatCompletion.create(
engine="XXX", # The deployment name you chose when you deployed the ChatGPT or GPT-4 model.
messages=[
{"role": "system", "content": "Assistant is a large language model…

Deejay217
- 81
- 1
- 3
5
votes
2 answers
Why I'm getting 404 Resource Not Found to my newly Azure OpenAI deployment?
I've gone through this quickstart and I created my Azure OpenAI resource + created a model deployment which is in state succeedded. I also playaround it in https://oai.azure.com/ and it works there.
But, If I try to reach it from REST API is returns…

Raz Ronen
- 2,418
- 2
- 14
- 26
4
votes
1 answer
AzureOpenAI and LangChain Weird, multiple answers
I'm using AzureOpenAI to test LangChain's Self Critique using Constitution.
It all works, except I get more than one answer, and the weirdest part, it GENERATES random, unwanted questions, and answer them.
Here is my Python code (I replaced…

Mehdi Bouhalassa
- 155
- 9
4
votes
1 answer
OpenAI Embeddings API: How embeddings work?
There are quite a few tutorials on embeddings in OpenAI. I can't understand how they work.
Referring to https://platform.openai.com/docs/guides/embeddings/what-are-embeddings , an embedding is a vector or list. A string is passed to an embedding…

Manu Chadha
- 15,555
- 19
- 91
- 184
3
votes
3 answers
Azure OpenAI - models missing
Yesterday I have been deploying Azure Open AI resource using Bicep template and it went OK. I was deploying following models:
gpt-35-turbo-16k version: 0613
gpt-35-turbo version 0613
text-embedding-ada-002 version 2
And today I can't see…

jjczopek
- 3,319
- 2
- 32
- 72
3
votes
3 answers
Langchain pandas agent - Azure OpenAI account
I am trying to use Langchain for structured data using these steps from the official document.
I changed it a bit as I am using Azure OpenAI account referring this.
Below is the snippet of my code -
from langchain.agents import…

Archit
- 33
- 6
3
votes
1 answer
Azure Open AI Studio uploading Help Guide for data
We're wanting to take our help guide and use that to build training data to upload into Azure Open AI studio (Azure OpenAI Studio -> File Management).
Is there any examples on taking a help/user guide and building data from that which we can feed…

Matt
- 3,305
- 11
- 54
- 98
3
votes
0 answers
Azure OpenAI returns "OperationNotSupported - The embeddings operation does not work with the specified model, text-embedding-ada-002"
Our backend service using Azure OpenAI APIs was unexpectedly getting this kind of responses for around 2 hours for all incoming requests:
error_code=OperationNotSupported
error_message='The embeddings operation does not work with the specified…

Michal Kňazský
- 31
- 1
3
votes
3 answers
Unsupported data type when making API request to Azure Open AI
I'm getting "unsupported data" error when trying to send post request to Azure OpenAI. What should I do to fix the…

Kenny_I
- 2,001
- 5
- 40
- 94
3
votes
1 answer
OpenAI Embeddings API: How to change the embedding output dimension?
In the official OpenAI node library Create embeddings if for example using the model text-embedding-ada-002 the embeddings returned is an array of around 1536.
import {Configuration, OpenAIApi} from 'openai'
openai = new…

Nadsah
- 109
- 1
- 9
2
votes
1 answer
Is there a way I can handle context and general questions in Langchain QA Retrieval?
I want to make a chatbot, that should answer questions from the context, in my case, a vector database. It is doing that perfectly. But I also want it to answer questions, which are not in the vector database. But it is unable to do so. It only is…

Usman Afridi
- 179
- 1
- 11
2
votes
2 answers
impact of (?) question mark in vector search
we are using azure cognitive search as a vector database, we are generating embeddings using the azure open ai Ada02 model for the query and the document (RAG pattern).
we are observing different results being produced for the same question with and…

nen
- 621
- 2
- 10
- 26
2
votes
1 answer
Check the commonality of the two sentences
To check the commonality of the two sentences, I used the model text-embedding-ada-002 of azure openai . However, it is not very accurate with negative sentences and antonyms. Example 2 sentences:
I hate eating candy and I like eating candy, the…

CDN
- 394
- 6
- 15
2
votes
0 answers
Azure Open AI InvalidRequestError
I'm new to OpenAI and trying some calls. I have created the resources and got my project endpoint and api key. However, I got the following error:
InvalidRequestError: The API deployment for this resource does not exist. If you created the…

siucat
- 21
- 4
2
votes
0 answers
How to queue API calls to Azure OpenAI service (with a token per minute rate limit) the most efficiently?
How can we implement an efficient queue using Azure serverless technologies (e.g. Azure Servicebus) to call Azure OpenAI service concurrently but guarantee earlier messages are processed first?
The complexity is that the rate limit is not based on X…

Bonen
- 23
- 3