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/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>
6 months ago
..
__init__.py community[patch]: flattening imports 3 (#18939) 6 months ago
aleph_alpha.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
awa.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
azure_openai.py multiple[patch]: fix deprecation versions (#18349) 6 months ago
baichuan.py infra: add print rule to ruff (#16221) 7 months ago
baidu_qianfan_endpoint.py community:qianfan endpoint support init params & remove useless params definietion (#15381) 8 months ago
bedrock.py community: normalize bedrock embeddings (#15103) 8 months ago
bookend.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
clarifai.py community[patch] : Tidy up and update Clarifai SDK functions (#18314) 6 months ago
cloudflare_workersai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
cohere.py community: Add support for cohere SDK v5 (keeps v4 backwards compatibility) (#19084) 6 months ago
dashscope.py Fixing the Issue with DashScopeEmbeddings Handling More than 25 Rows of Data (#14662) 8 months ago
databricks.py docs: fix databricks document url (#19096) 6 months ago
deepinfra.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
edenai.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
elasticsearch.py elasticsearch[patch], community[patch]: update references, deprecate community classes (#18506) 6 months ago
embaas.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
ernie.py community[patch]: deprecate ErnieBotChat and ErnieEmbeddings classes (#15862) 8 months ago
fake.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
fastembed.py community[patch]: support fastembed v1 and v2 (#19125) 6 months ago
google_palm.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
gpt4all.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
gradient_ai.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
huggingface.py community[patch]: Add embedding instruction to HuggingFaceBgeEmbeddings (#18017) 6 months ago
huggingface_hub.py community[patch]: Fixed 'coroutine' object is not subscriptable error (#15986) 8 months ago
infinity.py community[patch]: infinity embeddings update incorrect default url (#16759) 7 months ago
infinity_local.py community[minor]: infinity embedding local option (#17671) 7 months ago
javelin_ai_gateway.py infra: add print rule to ruff (#16221) 7 months ago
jina.py Refactor: use SecretStr for jina embeddings (#15068) 9 months ago
johnsnowlabs.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
laser.py community: Add Laser Embedding Integration (#18111) 7 months ago
llamacpp.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
llamafile.py community[minor]: llamafile embeddings support (#17976) 6 months ago
llm_rails.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
localai.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
minimax.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
mlflow.py docs: fix databricks document url (#19096) 6 months ago
mlflow_gateway.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
modelscope_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
mosaicml.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
nemo.py community[minor]: Nemo embeddings(#16206) 7 months ago
nlpcloud.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
oci_generative_ai.py community[patch]: docstrings (#16810) 7 months ago
octoai_embeddings.py community[patch]: octoai embeddings bug fix (#17216) 7 months ago
ollama.py community[patch]: fix top_p type hint (#15452) 8 months ago
openai.py multiple[patch]: fix deprecation versions (#18349) 6 months ago
optimum_intel.py community[minor]: Add QuantizedEmbedders (#17391) 7 months ago
sagemaker_endpoint.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
self_hosted.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
self_hosted_hugging_face.py docs: Update documentation to use 'model_id' rather than 'model_name' to match actual API (#16615) 8 months ago
sentence_transformer.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
spacy_embeddings.py infra: add -p to mkdir in lint steps (#17013) 7 months ago
sparkllm.py community[patch]: Fix sparkllm embeddings api bug. (#19122) 6 months ago
tensorflow_hub.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
vertexai.py Adds progress bar to VertexAIEmbeddings (#14542) 8 months ago
volcengine.py Feat add volcano embedding (#14693) 8 months ago
voyageai.py voyageai[patch]: init package (#19098) 6 months ago
xinference.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 9 months ago
yandex.py infra: add -p to mkdir in lint steps (#17013) 7 months ago