Problem in db #6439
Replies: 1 comment 1 reply
-
The error you're encountering, Here are a few steps to troubleshoot and resolve this issue:
If the issue persists, please provide the raw response from the Cohere API for further analysis. This will help in identifying the root cause of the problem. |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
Traceback (most recent call last):
File "c:\Users\Dell\try1.py", line 10, in
query_result = cohere_embeddings.embed_query(text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\AppData\Roaming\Python\Python312\site-packages\langchain_cohere\embeddings.py", line 193, in embed_query
return self.embed([text], input_type="search_query")[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\AppData\Roaming\Python\Python312\site-packages\langchain_cohere\embeddings.py", line 143, in embed
return [list(map(float, e)) for e in embeddings]
^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'float_'
System Info
all ok
Beta Was this translation helpful? Give feedback.
All reactions