Closed ringohoffman closed 6 days ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
@baskaryan @eyurtsev @hwchase17
out of curiosity does from langchain_community.embeddings import HuggingFaceEmbeddings
also cause issues?
out of curiosity does
from langchain_community.embeddings import HuggingFaceEmbeddings
also cause issues?
Yes
@eyurtsev I tried fixing the linting errors that arose in libs/community/tests/integration_tests/embeddings/test_titan_takeoff.py
. Should we retry?
Okay I ran mypy locally to be sure it passes now:
$ mypy libs/community/tests/integration_tests/embeddings/test_titan_takeoff.py
Success: no issues found in 1 source file
Are we good to merge? Thanks for the reviews @baskaryan and @eyurtsev!
Description
The existing public interface for
langchain_community.emeddings
is broken. In this file,__all__
is statically defined, but is subsequently overwritten with a dynamic expression, which type checkers like pyright do not support. pyright actually gives the following diagnostic on the line I am requesting we remove:reportUnsupportedDunderAll:
Currently, I get the following errors when attempting to use publicablly exported classes in
langchain_community.emeddings
:This is solved easily by removing the dynamic expression.