15 questions
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 ...
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://...
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 = ...
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&...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 '...
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(
...
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)
...
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'):
...