📦 chore(pyproject.toml): make huggingface-hub, llama-cpp-python, sentence-transformers, and ctransformers optional dependencies

🔀 chore(pyproject.toml): update the version of huggingface-hub, llama-cpp-python, sentence-transformers, and ctransformers to their latest versions
The huggingface-hub, llama-cpp-python, sentence-transformers, and ctransformers dependencies are now marked as optional in the pyproject.toml file. This allows users to choose whether or not to install these dependencies based on their specific needs. Additionally, the versions of these dependencies have been updated to their latest available versions.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-02 10:47:09 -03:00
commit 28fde19e8a
2 changed files with 30 additions and 20 deletions

View file

@ -34,9 +34,9 @@ langchain = "^0.0.219"
openai = "^0.27.8"
pandas = "^2.0.0"
chromadb = "^0.3.21"
huggingface-hub = "^0.15.0"
huggingface-hub = { version = "^0.15.0", optional = true }
rich = "^13.4.2"
llama-cpp-python = "~0.1.0"
llama-cpp-python = { version = "~0.1.0", optional = true }
networkx = "^3.1"
unstructured = "^0.7.0"
pypdf = "^3.11.0"
@ -53,8 +53,8 @@ qdrant-client = "^1.3.0"
websockets = "^10.3"
weaviate-client = "^3.21.0"
jina = "3.15.2"
sentence-transformers = "^2.2.2"
ctransformers = "^0.2.10"
sentence-transformers = { version = "^2.2.2", optional = true }
ctransformers = { version = "^0.2.10", optional = true }
cohere = "^4.11.0"
python-multipart = "^0.0.6"
sqlmodel = "^0.0.8"
@ -91,6 +91,14 @@ types-pyyaml = "^6.0.12.8"
[tool.poetry.extras]
deploy = ["langchain-serve"]
local = [
"llama-cpp-python",
"sentence-transformers",
"ctransformers",
"huggingface-hub",
]
all = ["deploy", "local"]
[tool.pytest.ini_options]
minversion = "6.0"