Irregular embedding responses cause issues with vector DBs #121
Closed
nigel-daniels
started this conversation in
General
Replies: 2 comments 1 reply
-
BTW the issue raised on Langchain.JS is #3626 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@nigel-daniels I haven't added support for embedding yet, but it is planned for the next version. The code here seems wrong |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been investigating an issue raised on the Langchain.js embedding module that the embeddings return irregular length vectors and this causes issues when trying to use these with vector databases. The expectation is that the resulting embeddings are a set length (for example Ollma returns embeddings of 5120). I tested this out with the following code:
I was not sure if this should be raised as an issue or if this would be best handled as an enhancement to set the vector length? I could pad the results within the Langchain.js but that would create an inconsistency.
Beta Was this translation helpful? Give feedback.
All reactions