langchain/libs
Matthew Hoffman 4f2e3bd7fd
community[patch]: fix public interface for embeddings module (#21650)
## 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](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportUnsupportedDunderAll):

```
Operation on "__all__" is not supported, so exported symbol list may be incorrect
```

Currently, I get the following errors when attempting to use publicablly
exported classes in `langchain_community.emeddings`:

```python
import langchain_community.embeddings

langchain_community.embeddings.HuggingFaceEmbeddings(...)  #  error: "HuggingFaceEmbeddings" is not exported from module "langchain_community.embeddings" (reportPrivateImportUsage)
```

This is solved easily by removing the dynamic expression.
2024-05-22 11:42:15 -04:00
..
cli cli[minor]: fix import path for two Astra DB classes in the migration json data (#21926) 2024-05-20 12:25:10 -04:00
community community[patch]: fix public interface for embeddings module (#21650) 2024-05-22 11:42:15 -04:00
core core[patch]: Release 0.2.1 (#22003) 2024-05-22 00:05:04 +00:00
experimental experimental[patch]: Pass enum only to openai in llm graph transformer (#21860) 2024-05-20 15:02:48 -07:00
langchain OpenAI Assistants v2 api support for OpenAIAssistantRunnable (#21484) 2024-05-21 15:32:29 -07:00
partners ai21: AI21 Jamba docs (#21978) 2024-05-21 19:27:46 +00:00
standard-tests core, standard tests, partner packages: add test for model params (#21677) 2024-05-17 13:51:26 -04:00
text-splitters infra: fix CI on text-splitters (#21935) 2024-05-20 14:03:42 -07:00