Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
2 votes
1 answer
60 views

Angle Embedder in Python Messing Up Logging Config

I wrote another question on this earlier, but could not pinpoint the issue on my side, here, I am giving a minimal reproducible code. System Angle version 0.5.6 UV 0.8.22 Python 3.12 Ubuntu 24.04 I ...
Della's user avatar
  • 1,730
0 votes
1 answer
91 views

Semantic Kernel AddAzureOpenAITextEmbeddingGeneration not giving a ITextEmbeddingGenerationService service

In Semantic Kerenel 1.43.0, I'm using dependency injection to register AzureOpenAITextEmbeddingGenerationService, services.AddAzureOpenAITextEmbeddingGeneration("test-service", "https://...
Rizan Zaky's user avatar
  • 4,702
0 votes
0 answers
2k views

Azure OpenAI Embeddings - Tiktoken Connection Error

I am using Azure AI Search instance with an embedding function text-embedding-ada-002. I am calling the embedding function via AzureOpenAIEmbeddings class using langchain_openai library: self.model = ...
Evren Çetinkaya's user avatar
0 votes
1 answer
129 views

Elasticsearch RequestError(400) 'search_phase_execution_exception'

I have a simple python app that uses Elasticsearch to store documents for Pokemon using this mapping: { "mappings": { "properties": { "id": { "type&...
KZiovas's user avatar
  • 5,029
0 votes
2 answers
988 views

Azure OpenAI with AzureExtensionsOptions it does not inherent model's knowledge

In Azure OpenAI I have added my own Data Source and it's working fine if I ask question within my train data but if I ask something outside of my train data it does not give answer and It's looks like ...
Hasanuzzaman's user avatar
  • 1,852
0 votes
0 answers
133 views

Text Embedding result based on Priority

I am new to OpenAI, I have integrated text-embedding-ada-002 modal in AWS OpenSearch for the semantic search. I want text Embedding Results based on my priority order so for example my document is ...
Utsav Dholiya's user avatar
0 votes
0 answers
240 views

Getting sqlalchemy.orm.exc.UnmappedInstanceError when writing OpenAI vector embedding to Postgres database using FastAPI post route

I am working on a FastAPI solution with Python to store OpenAI vector embeddings in a Postgres Database using pgvector. I am using SQLAlchemy for the connection to the database. When I try to post ...
WurzelseppQX's user avatar
2 votes
1 answer
435 views

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 ...
CDN's user avatar
  • 420
1 vote
0 answers
1k views

Getting retry error while running Openai embedding engine

So, I'm running code for text embedder, using Openai Ada-002 model. Code looks something like that: import pandas as pd from openai.embeddings_utils import get_embedding, cosine_similarity import ...
RIOMIO's user avatar
  • 11
3 votes
0 answers
954 views

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 ...
Michal Kňazský's user avatar
3 votes
1 answer
2k views

Azure OpenAI Embeddings vs OpenAI Embeddings

Is anyone getting different results from Azure OpenAI embeddings deployment using text-embedding-ada-002 than the ones from OpenAI? Same text, same model, and the results are considerably far in the ...
Ak123's user avatar
  • 59
4 votes
1 answer
6k views

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 '...
Nadsah's user avatar
  • 129
1 vote
1 answer
13k views

OpenAI API error: "AttributeError: module 'openai' has no attribute 'Embedding'"

According to OpenAi's documentation and a large number of demonstrations I found online, the following code should run without a problem in Python: import openai response = openai.Embedding.create( ...
ashap551's user avatar
1 vote
2 answers
3k views

OpenAI Embeddings Cosine Similarity Search 'Input vector should be 1-D' error

I am getting following error in Jupyter Notebook --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ...
user3137471's user avatar
4 votes
1 answer
12k views

OpenAI Embeddings API error: "AttributeError: module 'openai' has no attribute 'Embedding'"

I was running a python script with the openai library. Whenever I run this function on my local machine it throws the following error def gpt3_embedding(content, engine='text-embedding-ada-002'): ...
Bisrat Moges's user avatar