-
Notifications
You must be signed in to change notification settings - Fork 111
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
[Bug]: Changing fastembed version but with the same embedder I have different vector with the same text #373
Comments
I'd share with you a kind of guide to reproduce what I'm observing. Step 1run a docker container with python 3.10.11 docker run -d -i -t python:3.10 bash Step 2Enter in the docker container getting the container's id with docker exec -ti <CONTAINER ID> bash Step 3Install vim apt update && apt install vim Step 4Create a python's file from langchain_community.embeddings import FastEmbedEmbeddings
embedder = FastEmbedEmbeddings(model_name="intfloat/multilingual-e5-large")
text = "Hello world"
embedding = embedder.embed_query(text)
print(embedding) Step 5Install dependencies pip install langchain_core==0.1.22
pip install langchain==0.1.4
pip install fastembed==0.1.3 Step 6Run the script and get the result python embedder.py First part of the vector
Step 7Upgrade the fastembed version
Step 8Run the script and get the result python embedder.py First part of the vector
Step 9Compare the result |
Reproduced for me, but last output is: |
Yap, times change: After release 0.2.0 the behavior stays as it's now. Please use some actual version of fastembed |
Thanks @I8dNLo for the test. I checked the code and I observed that in previous version you were prepending |
Unfortunately the update it's disruptive on the RAG system that I've because I have different result. |
What happened?
I have two environments one with fastembed with the version 0.3.4 and another one with the version 0.1.3.
The embedder used is: https://huggingface.co/intfloat/multilingual-e5-large
What Python version are you on? e.g. python --version
python 3.10.11
Version
0.2.7 (Latest)
What os are you seeing the problem on?
Linux
Relevant stack traces and/or logs
No response
The text was updated successfully, but these errors were encountered: