You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/tests/integration_tests/embeddings
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.
4 months ago
..
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_awa.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_azure_openai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_baichuan.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_bookend.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_cloudflare_workersai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_cohere.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_dashscope.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_deepinfra.py [community][fix](DeepInfraEmbeddings): Implement chunking for large batches (#21189) 5 months ago
test_edenai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_elasticsearch.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_embaas.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_ernie.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_fastembed.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_google_palm.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_huggingface.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_huggingface_hub.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_jina.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_johnsnowlabs.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_laser.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_llamacpp.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_modelscope_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_mosaicml.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_octoai_embeddings.py community[patch]: update OctoAIEmbeddings to subclass OpenAIEmbeddings (#21805) 4 months ago
test_openai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_premai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_qianfan_endpoint.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_sambanova.py community: add SambaNova embeddings integration (#21227) 5 months ago
test_self_hosted.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_sentence_transformer.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_sparkllm.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_tensorflow_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_titan_takeoff.py community[patch]: fix public interface for embeddings module (#21650) 4 months ago
test_vertexai.py community[patch]: changed default for VertexAIEmbeddings (#14614) 9 months ago
test_volcano.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_voyageai.py community[patch]: upgrade to recent version of mypy (#21616) 4 months ago
test_xinference.py community[patch]: Adopting the lighter-weight xinference_client (#21900) 4 months ago