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]: Type mismatch for embedding function #2219

Open
nikhil-swamix opened this issue May 16, 2024 · 6 comments
Open

[Bug]: Type mismatch for embedding function #2219

nikhil-swamix opened this issue May 16, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@nikhil-swamix
Copy link

What happened?

image

Versions

image

Relevant log output

No response

@nikhil-swamix nikhil-swamix added the bug Something isn't working label May 16, 2024
@nikhil-swamix
Copy link
Author

@dglazkov @jschachter @ibratoev @levand
should i open a PR refactoring the type fix? this seems to work
image

After

image

it will help my github profile if i contribute such a great open source. it will take max 15 mins.
thanks and regards.

@nikhil-swamix
Copy link
Author

this seems more safe what you think? and throws no error. i think adding or type, will prevent any conflicts with image embedding. Embeddable seems some Abstract type, which is of ndarray i suppose image. pls correct if im wrong.
thanks and regards.
image

@sanketkedia
Copy link
Contributor

@sanketkedia
Copy link
Contributor

https://docs.trychroma.com/integrations/openai -- this gives an overview of how to use open AI embeddings

@sanketkedia
Copy link
Contributor

I can't repro this on chromadb version 0.5.0. Can you try upgrading and see if this issue persists?

@nikhil-swamix
Copy link
Author

nikhil-swamix commented May 17, 2024

yes im on chroma 0.5.0 after upgrading, and used same steps to create an embedding function. the issue of typechecking reported by pylance still persists

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