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 community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
awa.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
azure_openai.py multiple[patch]: fix deprecation versions (#18349) 2024-02-29 16:58:33 -08:00
baichuan.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
baidu_qianfan_endpoint.py community:qianfan endpoint support init params & remove useless params definietion (#15381) 2024-01-01 13:12:31 -08:00
bedrock.py community: normalize bedrock embeddings (#15103) 2024-01-23 17:05:24 -08:00
bookend.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
clarifai.py community[patch] : Tidy up and update Clarifai SDK functions (#18314) 2024-03-07 19:47:44 -08:00
cloudflare_workersai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
cohere.py community: Add support for cohere SDK v5 (keeps v4 backwards compatibility) (#19084) 2024-03-14 15:53:24 -07:00
dashscope.py Fixing the Issue with DashScopeEmbeddings Handling More than 25 Rows of Data (#14662) 2024-01-01 16:50:13 -08:00
databricks.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
deepinfra.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
edenai.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
elasticsearch.py elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 2024-03-06 15:09:12 -08:00
embaas.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
ernie.py community[patch]: deprecate ErnieBotChat and ErnieEmbeddings classes (#15862) 2024-01-15 11:14:44 -08:00
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
fastembed.py community[patch]: support fastembed v1 and v2 (#19125) 2024-03-15 18:33:51 -07:00
google_palm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
gpt4all.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
gradient_ai.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
huggingface_hub.py community[patch]: Fixed 'coroutine' object is not subscriptable error (#15986) 2024-01-15 10:34:10 -08:00
huggingface.py community[patch]: Add embedding instruction to HuggingFaceBgeEmbeddings (#18017) 2024-03-08 16:39:29 -08:00
infinity_local.py community[minor]: infinity embedding local option (#17671) 2024-02-21 16:33:13 -08:00
infinity.py community[patch]: infinity embeddings update incorrect default url (#16759) 2024-02-12 20:05:08 -08:00
javelin_ai_gateway.py infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
jina.py Refactor: use SecretStr for jina embeddings (#15068) 2023-12-22 11:42:29 -08:00
johnsnowlabs.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
laser.py community: Add Laser Embedding Integration (#18111) 2024-02-26 12:16:37 -08:00
llamacpp.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
llamafile.py community[minor]: llamafile embeddings support (#17976) 2024-03-01 13:49:18 -08:00
llm_rails.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
localai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
minimax.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
mlflow_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
mlflow.py docs: fix databricks document url (#19096) 2024-03-15 22:25:11 +00:00
modelscope_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
mosaicml.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
nemo.py community[minor]: Nemo embeddings(#16206) 2024-02-14 13:25:42 -08:00
nlpcloud.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
oci_generative_ai.py community[patch]: docstrings (#16810) 2024-02-09 12:48:57 -08:00
octoai_embeddings.py community[patch]: octoai embeddings bug fix (#17216) 2024-02-07 22:25:52 -05:00
ollama.py community[patch]: fix top_p type hint (#15452) 2024-01-15 11:59:39 -08:00
openai.py multiple[patch]: fix deprecation versions (#18349) 2024-02-29 16:58:33 -08:00
optimum_intel.py community[minor]: Add QuantizedEmbedders (#17391) 2024-02-15 11:01:24 -08:00
sagemaker_endpoint.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
self_hosted_hugging_face.py docs: Update documentation to use 'model_id' rather than 'model_name' to match actual API (#16615) 2024-01-26 15:01:12 -08:00
self_hosted.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
sentence_transformer.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
spacy_embeddings.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
sparkllm.py community[patch]: Fix sparkllm embeddings api bug. (#19122) 2024-03-15 15:08:49 -07:00
tensorflow_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
vertexai.py Adds progress bar to VertexAIEmbeddings (#14542) 2024-01-24 11:16:16 -07:00
volcengine.py Feat add volcano embedding (#14693) 2024-01-01 14:37:35 -08:00
voyageai.py voyageai[patch]: init package (#19098) 2024-03-15 00:56:10 +00:00
xinference.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
yandex.py infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00