Update pymilvus to >=2.6.2 and add protobuf compatibility constraint

(cherry picked from commit 49197fbfc0)
This commit is contained in:
yangdx 2025-10-11 13:27:10 +08:00 committed by Raphaël MANSUY
parent de011c99a4
commit 7525c7836c
2 changed files with 28 additions and 24 deletions

View file

@ -23,12 +23,13 @@ classifiers = [
dependencies = [ dependencies = [
"aiohttp", "aiohttp",
"configparser", "configparser",
"dotenv",
"future", "future",
"json_repair", "json_repair",
"nano-vectordb", "nano-vectordb",
"networkx", "networkx",
"numpy", "numpy",
"pandas>=2.0.0,<2.3.0", "pandas>=2.0.0",
"pipmaster", "pipmaster",
"pydantic", "pydantic",
"pypinyin", "pypinyin",
@ -44,13 +45,14 @@ api = [
# Core dependencies # Core dependencies
"aiohttp", "aiohttp",
"configparser", "configparser",
"dotenv",
"future", "future",
"json_repair", "json_repair",
"nano-vectordb", "nano-vectordb",
"networkx", "networkx",
"numpy", "numpy",
"openai>=1.0.0,<2.0.0", "openai",
"pandas>=2.0.0,<2.3.0", "pandas>=2.0.0",
"pipmaster", "pipmaster",
"pydantic", "pydantic",
"pypinyin", "pypinyin",
@ -70,7 +72,7 @@ api = [
"jiter", "jiter",
"passlib[bcrypt]", "passlib[bcrypt]",
"psutil", "psutil",
"PyJWT>=2.8.0,<3.0.0", "PyJWT",
"python-jose[cryptography]", "python-jose[cryptography]",
"python-multipart", "python-multipart",
"pytz", "pytz",
@ -80,33 +82,35 @@ api = [
# Offline deployment dependencies (layered design for flexibility) # Offline deployment dependencies (layered design for flexibility)
offline-docs = [ offline-docs = [
# Document processing dependencies # Document processing dependencies
"docling>=1.0.0",
"pypdf2>=3.0.0", "pypdf2>=3.0.0",
"python-docx>=0.8.11,<2.0.0", "python-docx>=0.8.11",
"python-pptx>=0.6.21,<2.0.0", "python-pptx>=0.6.21",
"openpyxl>=3.0.0,<4.0.0", "openpyxl>=3.0.0",
] ]
offline-storage = [ offline-storage = [
# Storage backend dependencies # Storage backend dependencies
"redis>=5.0.0,<7.0.0", "redis>=5.0.0",
"neo4j>=5.0.0,<7.0.0", "neo4j>=5.0.0",
"pymilvus>=2.6.2,<3.0.0", "pymilvus>=2.6.2",
"pymongo>=4.0.0,<5.0.0", "protobuf>=5.27.2,<6.0.0", # Required for pymilvus compatibility
"asyncpg>=0.29.0,<1.0.0", "pymongo>=4.0.0",
"qdrant-client>=1.7.0,<2.0.0", "asyncpg>=0.29.0",
"qdrant-client>=1.7.0",
] ]
offline-llm = [ offline-llm = [
# LLM provider dependencies # LLM provider dependencies
"openai>=1.0.0,<2.0.0", "openai>=1.0.0",
"anthropic>=0.18.0,<1.0.0", "anthropic>=0.18.0",
"ollama>=0.1.0,<1.0.0", "ollama>=0.1.0",
"zhipuai>=2.0.0,<3.0.0", "zhipuai>=2.0.0",
"aioboto3>=12.0.0,<16.0.0", "aioboto3>=12.0.0",
"voyageai>=0.2.0,<1.0.0", "voyageai>=0.2.0",
"llama-index>=0.9.0,<1.0.0", "llama-index>=0.9.0",
"transformers>=4.30.0,<5.0.0", "transformers>=4.30.0",
"torch>=2.0.0,<2.3.0", "torch>=2.0.0",
] ]
offline = [ offline = [
@ -127,7 +131,6 @@ Repository = "https://github.com/HKUDS/LightRAG"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
include = ["lightrag*"] include = ["lightrag*"]
exclude = ["data*", "tests*", "scripts*", "examples*", "dickens*", "reproduce*", "output_complete*", "rag_storage*", "inputs*"]
[tool.setuptools] [tool.setuptools]
include-package-data = true include-package-data = true
@ -136,7 +139,7 @@ include-package-data = true
version = {attr = "lightrag.__version__"} version = {attr = "lightrag.__version__"}
[tool.setuptools.package-data] [tool.setuptools.package-data]
lightrag = ["api/webui/**/*", "api/static/**/*"] lightrag = ["api/webui/**/*"]
[tool.ruff] [tool.ruff]
target-version = "py310" target-version = "py310"

View file

@ -7,6 +7,7 @@
asyncpg>=0.29.0 asyncpg>=0.29.0
neo4j>=5.0.0 neo4j>=5.0.0
pymilvus>=2.6.2 pymilvus>=2.6.2
protobuf>=5.27.2,<6.0.0 # Required for pymilvus compatibility
pymongo>=4.0.0 pymongo>=4.0.0
qdrant-client>=1.7.0 qdrant-client>=1.7.0
# Storage backend dependencies # Storage backend dependencies