Closed amaiya closed 9 months ago
Importing and instantiating langchain.embeddings.HuggingFaceEmbeddings causes nbdev_test to malfunction and not execute subsequent tests.
langchain.embeddings.HuggingFaceEmbeddings
nbdev_test
nbdev_new
00_core.ipynb
from langchain.embeddings import HuggingFaceEmbeddings emb = HuggingFaceEmbeddings() assert 1==2, 'never executed by nbdev_test'
nbdev_test --do_print --file_re core.ipynb
Success
Interestingly, it only happens with langchain.embeddings.HuggingFaceEmbeddings, not when using sentence_transformers directly.
sentence_transformers
Closed as the problem goes away when re-installing from scratch.
Importing and instantiating
langchain.embeddings.HuggingFaceEmbeddings
causesnbdev_test
to malfunction and not execute subsequent tests.Steps to Reproduce
nbdev_new
) or existing nbdev repo, add the following in a notebook cell (e.g., in00_core.ipynb
):nbdev_test --do_print --file_re core.ipynb
.nbdev_test
returnsSuccess
when it should be failing.Interestingly, it only happens with
langchain.embeddings.HuggingFaceEmbeddings
, not when usingsentence_transformers
directly.