Why is there a separate interface for Huggingface embeddings and specifically Huggingface BGE Embeddings? #14072
JamalRahman
started this conversation in
General
Replies: 1 comment 1 reply
-
Decided to investigate this myself. The difference is that BGE works by having a prompt ( These two are functionally equivalent:
I'll create a PR for updating the docs to explain this. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
BGE embeddings hosted on Huggingface are runnable via sentence-transformers, which is the underlying mechanism used in Langchain.
Yet in Langchain there is a separate class for interacting with BGE embeddings;
langchain.embeddings.huggingface.HuggingFaceBgeEmbeddings
versus[langchain.embeddings.huggingface.HuggingFaceEmbeddings
I haven't found any documentation anywhere that explains the reason for a BGE-specific interface.
Is there some form of incompatibility? If not it seems misleading!
Beta Was this translation helpful? Give feedback.
All reactions