You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @irshadmb! I'm here to help you with bugs, questions, and becoming a contributor. Let's tackle this together!
The error you're encountering is due to a type mismatch where a float64 value is being passed instead of a float. This issue often arises when handling numerical data types in Python, especially when using libraries like NumPy, which default to float64.
To resolve this, you can explicitly convert the float64 values to float before storing them in Pinecone. If you're using NumPy arrays, you can convert them using the .astype(float) method. Here's a quick example:
importnumpyasnp# Example array with float64float64_array=np.array([1.0, 2.0, 3.0], dtype=np.float64)
# Convert to floatfloat_array=float64_array.astype(float)
Ensure that this conversion is done in the part of your code where embeddings are prepared before being sent to Pinecone. This should help in preventing the type mismatch error.
Bug Description
Error building Component Pinecone: Invalid type for variable '0'. Required value type is float and passed type was float64 at ['values'][0]
Reproduction
Expected behavior
It must not give error
Who can help?
No response
Operating System
Docker
Langflow Version
1.0.19
Python Version
None
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: