refactor: update dependency versions and streamline backend installation commands (#3939)

* Update Makefile to streamline backend dependency installation commands

* Update dependency versions in pyproject.toml for weaviate-client, httpx, and others

* Update dependency versions in pyproject.toml for better compatibility and stability

* new lock

* refactor: streamline backend dependency installation commands

* update examples formatting
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-09-26 16:23:26 -03:00 • committed by GitHub
commit bf2aadf6a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 73 additions and 60 deletions

View file

@ -166,7 +166,7 @@ readme = "README.md"
dependencies = [
"fastapi>=0.111.0",
"httpx",
"httpx>=0.27",
"uvicorn>=0.30.0",
"gunicorn>=22.0.0",
"langchain~=0.2.0",
@ -178,7 +178,6 @@ dependencies = [
"langchain-experimental>=0.0.61",
"pydantic>=2.7.0",
"pydantic-settings>=2.2.0",
"websockets",
"typer>=0.12.0",
"cachetools>=5.3.1",
"platformdirs>=4.2.0",
@ -224,22 +223,22 @@ dependencies = [
# Optional dependencies for uv
[project.optional-dependencies]
deploy = [
"celery",
"redis",
"flower"
"celery>=5.3.1",
"redis>=4.6.0",
"flower>=1.0.0"
]
local = [
"llama-cpp-python",
"sentence-transformers",
"ctransformers"
"llama-cpp-python>=0.2.0",
"sentence-transformers>=2.0.0",
"ctransformers>=0.2"
]
all = [
"celery",
"redis",
"flower",
"llama-cpp-python",
"sentence-transformers",
"ctransformers"
"celery>=5.3.1",
"redis>=4.6.0",
"flower>=1.0.0",
"llama-cpp-python>=0.2.0",
"sentence-transformers>=2.0.0",
"ctransformers>=0.2"
]
# Development dependencies
@ -248,7 +247,7 @@ dev = [
"ipykernel>=6.29.0",
"mypy>=1.11.0",
"ruff>=0.4.5",
"httpx",
"httpx>=0.27",
"pytest>=8.2.0",
"types-requests>=2.32.0",
"requests>=2.32.0",