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

[Bug]: Error Unspported Data Type when Embedding using Open Azure #2840

Open
1 task done
rendybjunior opened this issue Oct 15, 2024 · 3 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@rendybjunior
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch name

main

Commit ID

main

Other environment information

Debian VM

Actual behavior

When embedding file, it is error. Why, because Open AI Azure base url is NOT really base url. It doesn't work unless you put the full URL for chat completion. Meanwhile OpenAI Azure has DIFFERENT url for each model and task and purpose.

Expected behavior

Embedding not error and success.

Steps to reproduce

Setup OpenAI Azure model, setup LLM and embedding BOTH to OpenAI Azure.
Go to Knowledge base, upload any file pdf, and see error Unsupported data type.

Additional information

No response

@rendybjunior rendybjunior added the bug Something isn't working label Oct 15, 2024
@KevinHuSh
Copy link
Collaborator

So, what kind of file you did you upload and what chunking method did you choose?

@rendybjunior
Copy link
Author

rendybjunior commented Oct 15, 2024

So, what kind of file you did you upload and what chunking method did you choose?

I was uploading pdf file, I'm using default chunking method ("General").

I believe the root cause is the url path put in the setting. Azure OpenAI has different path and different model names for each usage. We can't put one url config for multiple purpose (LLM, Embedding, etc). It has to be one url per model as each has different "Deployment Name".

Since the configuration validate for chat completion, the embedding doesn't work.

@KevinHuSh
Copy link
Collaborator

Got it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants