-
Notifications
You must be signed in to change notification settings - Fork 111
-
|
Describe the bug To Reproduce ed = EmbedData(embedding=[0.1, 2.4], text="hi", metadata={})raises the error:
Expected behavior |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 3 comments
-
|
Well, there is no reason for the same class and instance attribute, but class instantiation will indeed not work from the python side as of now as there is no contractor that is defined in Rust for this python class. This can be added but would this be necessary? Because the idea is to generate the embeddings using the dedicated embedding methods to get the output as EmbedData. |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
Hi @pramodith , there are dedicated functions to generate embeddings from sources in python, like embed_file, embed_query. Because all the methods to actually generate the embeddings are in rust, you can access them through these dedicated functions. And the pyi file is a stub file, it's just for docs. It's just like an interface. Because we used pyo3 bindings. |
Beta Was this translation helpful? Give feedback.
All reactions
-
1
-
|
Thanks for the context folks, closing the issue since you've clarified my confusion. |
Beta Was this translation helpful? Give feedback.
All reactions
-
1