-
Notifications
You must be signed in to change notification settings - Fork 4.6k
[feat add]FastEmbed embedding for local embeddings #3552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey @lucifertrj Thank you for implementing this but can you please see for the failing tests? |
mem0/embeddings/fastembed.py
Outdated
| self.config.model = self.config.model or "thenlper/gte-large" | ||
| self.config.embedding_dims = self.config.embedding_dims or 1024 | ||
|
|
||
| self.dense_model = TextEmbedding(model_name = self.config.model,max_lenth = self.config.embedding_dims) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove max_lenth from here? Fastembed doesn't support this param.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you check now
|
Hey @lucifertrj the tests are failing. Can you please check? |
|
Can you resolve merge conflicts? |
I have resolved it. I am getting this Vercel Authorization required to deploy although I have already approved. |
|
Vercel deployment is for the maintainers of the project, so that is fine and not an issue on your end. |
Alright got it. |
|
@lucifertrj there's no support for the |
In that case, they will have to use a specific vector store, mainly Qdrant. FastEmbed goes well in hand with Qdrant vector store. I can help out with documentation. |
|
Okay cool it looks good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
|
Thanks a lot for your contribution @lucifertrj 🚀 |
let's go. Let me add the documentation too... |
|
Let me know once you raise the PR!🔥 |

Add: FastEmbed Embedding for the local embedding inference use cases
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
As of now, I have tested FastEmbed Embeddings with mem0 Memory Config directly.
Please delete options that are not relevant.
Checklist:
Maintainer Checklist