langchain/libs/community/langchain_community/embeddings
Sergey Kozlov 1a55e950aa
community[patch]: support fastembed v1 and v2 (#19125)
**Description:**
#18040 forces `fastembed>2.0`, and this causes dependency conflicts with
the new `unstructured` package (different `onnxruntime`). There may be
other dependency conflicts.. The only way to use
`langchain-community>=0.0.28` is rollback to `unstructured 0.10.X`. But
new `unstructured` contains many fixes.

This PR allows to use both `fastembed` `v1` and `v2`.

How to reproduce:

`pyproject.toml`:
```toml
[tool.poetry]
name = "depstest"
version = "0.0.0"
description = "test"
authors = ["<dev@example.org>"]

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
langchain-community = "^0.0.28"
fastembed = "^0.2.0"
unstructured = {extras = ["pdf"], version = "^0.12"}
```

```bash
$ poetry lock
```

Co-authored-by: Sergey Kozlov <sergey.kozlov@ludditelabs.io>
2024-03-15 18:33:51 -07:00
..
__init__.py community[patch]: flattening imports 3 (#18939) 2024-03-12 15:18:54 -07:00
aleph_alpha.py
awa.py
azure_openai.py multiple[patch]: fix deprecation versions (#18349) 2024-02-29 16:58:33 -08:00
baichuan.py
baidu_qianfan_endpoint.py
bedrock.py
bookend.py
clarifai.py community[patch] : Tidy up and update Clarifai SDK functions (#18314) 2024-03-07 19:47:44 -08:00
cloudflare_workersai.py
cohere.py community: Add support for cohere SDK v5 (keeps v4 backwards compatibility) (#19084) 2024-03-14 15:53:24 -07:00
dashscope.py
databricks.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
deepinfra.py
edenai.py
elasticsearch.py elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 2024-03-06 15:09:12 -08:00
embaas.py
ernie.py
fake.py
fastembed.py community[patch]: support fastembed v1 and v2 (#19125) 2024-03-15 18:33:51 -07:00
google_palm.py
gpt4all.py
gradient_ai.py
huggingface_hub.py
huggingface.py community[patch]: Add embedding instruction to HuggingFaceBgeEmbeddings (#18017) 2024-03-08 16:39:29 -08:00
infinity_local.py
infinity.py
javelin_ai_gateway.py
jina.py
johnsnowlabs.py
laser.py community: Add Laser Embedding Integration (#18111) 2024-02-26 12:16:37 -08:00
llamacpp.py
llamafile.py community[minor]: llamafile embeddings support (#17976) 2024-03-01 13:49:18 -08:00
llm_rails.py
localai.py
minimax.py
mlflow_gateway.py
mlflow.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
modelscope_hub.py
mosaicml.py
nemo.py
nlpcloud.py
oci_generative_ai.py
octoai_embeddings.py
ollama.py
openai.py multiple[patch]: fix deprecation versions (#18349) 2024-02-29 16:58:33 -08:00
optimum_intel.py
sagemaker_endpoint.py
self_hosted_hugging_face.py
self_hosted.py
sentence_transformer.py
spacy_embeddings.py
sparkllm.py community[patch]: Fix sparkllm embeddings api bug. (#19122) 2024-03-15 15:08:49 -07:00
tensorflow_hub.py
vertexai.py
volcengine.py
voyageai.py voyageai[patch]: init package (#19098) 2024-03-15 00:56:10 +00:00
xinference.py
yandex.py