Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding Model Issue - Azure and Huggingface both #279

Open
sureshtmca opened this issue Dec 25, 2024 · 0 comments
Open

Embedding Model Issue - Azure and Huggingface both #279

sureshtmca opened this issue Dec 25, 2024 · 0 comments

Comments

@sureshtmca
Copy link

sureshtmca commented Dec 25, 2024

Hello

Agent0 is failing for Azure Embedding model .
Two issues noticed :
1- we are not supposed to have 'deployment_name' in the AzureOpenaiembeddings API call
2- After correcting the above, i get " raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Unsupported data type", for even HI message

Agent0 is also failing for Huggingface embedding model ( only working model so far is sentence-transformers/all-MiniLM-L6-v2). Below models are tried but receiving famous errors:
1 - "Loading nvidia/NV-Embed-v2 requires you to execute the configuration file in that repo on your local machine. Make
sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this
error" and "lib/python3.10/site-packages/transformers/models/mistral/modeling_mistral.py", line 165, in forward
2 - scores, indices = self.index.search(vector, k if filter is None else fetch_k)
File "/home/azureuser/suresh/agents/agent0/agent0env/lib/python3.10/site-packages/faiss/class_wrappers.py",
line 329, in replacement_search assert d == self.d AssertionError

   3-     cos, sin = position_embeddings TypeError: cannot unpack non-iterable NoneType object". 

Possible try to address these issues please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant