Closed juerware closed 3 months ago
It seems the deps are not installed that should be.
In requierments_optional_langchain.txt it has:
sentence_transformers>=3.0.1
InstructorEmbedding @ https://h2o-release.s3.amazonaws.com/h2ogpt/InstructorEmbedding-1.0.1-py3-none-any.whl
sentence_transformers_old @ https://h2o-release.s3.amazonaws.com/h2ogpt/sentence_transformers_old-2.2.2-py3-none-any.whl
and for me I see no failure because inside $HOME/miniconda3/envs/h2ogpt/lib/python3.10/site-packages/InstructorEmbedding/instructor.py
it references only:
from sentence_transformers_old import SentenceTransformer
from sentence_transformers_old.models import Transformer
Can you check your file and see what it shows? I presume not the "old" ones but normal. So explains failure.
However, doesn't explain why you have wrong packages. I just redid install and see these good packages used.
You should be able to do just:
from InstructorEmbedding import INSTRUCTOR
in python and it shouldn't fail. So not related to h2oGPT itself, just those two packages.
In clean docker I also see this works fine.
677bf0817d3e342ffc32a31a94cf63cc05096660 794ec254460a0c38a2e3ae3e4437f5dc0f695a09
Building new image with above fix to see if order helps. I saw in jenkins that earlier requirements.txt file triggered instructorembedding install, so needs to be early and not as late as langchain one.
Seems to work. Thanks for reporting!
It´s working right now, thanks.
This is the command line lauched:
This is the error found:
System:
Environment utterly updated and clean after execution of script
bash docs/linux_install_full.sh
Observations:
Embedding models as "intfloat/multilingual-e5-small" does not report any problem.
Thanks for everything.