'expected string or buffer' or 'AssertionError' when it comes to embedding #9912
Replies: 2 comments 1 reply
-
🤖 Hello, From the code and context you've provided, it seems like the errors might be related to the data types being passed to the embedding functions. However, without the exact error messages and tracebacks, it's hard to pinpoint the exact issue. For the 'AssertionError' with HuggingFace embeddings, it's possible that the model you're trying to use ('hkunlp/instructor-xl') is not compatible with the function or the data you're passing to it. It would be helpful if you could provide the exact error message and traceback for this issue. For the 'expected string or buffer' error with OpenAI embeddings, this error typically occurs when a function that expects a string (or buffer) as input is given a different data type. It's possible that the Also, it would be helpful to know more about the Once we have more information, we should be able to help you resolve these issues. Thank you for your patience. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
got it working for who ever is going to stumble upon this post:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Long story short: i made my own 'chat with your PDF' demo with streamlit and if i use huggingFace embedding i get the following error: 'AssertionError'. If i use openAI embedding i get: "expected string or buffer". Im also trying for it to be automatic, so i just upload the file, click a button and wait for the output. Can someone tell me what the problem is:
,
,
and
Beta Was this translation helpful? Give feedback.
All reactions