langchain/libs
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
..
cli templates, cli: more security deps (#19006) 2024-03-12 20:48:56 -07:00
community community[patch]: support fastembed v1 and v2 (#19125) 2024-03-15 18:33:51 -07:00
core docs: Add in code documentation to core Runnable with_fallbacks method (docs only) (#19104) 2024-03-15 15:21:10 -07:00
experimental community, langchain, infra: revert store extended test deps outside of poetry (#19153) 2024-03-15 17:10:47 +00:00
langchain langchain[patch]: make hub work with older langchainhub versions (#19076) 2024-03-15 15:37:52 -07:00
partners docs: update docstring of Together class (#19008) 2024-03-15 16:30:45 -07:00
text-splitters text-splitters[patch]: fix json split of RecursiveJsonSplitter (#19119) 2024-03-15 16:46:49 -07:00