Skip to content

Commit

Permalink
deps: upgrade llamaindex to 0.10.28 (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi authored Apr 15, 2024
1 parent 8a22d14 commit 6eca9c1
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 24 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/_run_e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ jobs:
UNSTRUCTURED_API_URL: "${{ secrets.E2E_TESTS_UNSTRUCTURED_API_URL }}"
run: |
source scripts/ci-common-env.sh
# workaround for FileLocked https://github.com/datastax/ragstack-ai/actions/runs/8629355336/job/23653432063?pr=316
rm -rf **/.tox
if [ "${{ inputs.suite-name == 'ragstack' }}" == "true" ]; then
tox -c ragstack-e2e-tests
elif [ "${{ inputs.suite-name == 'langchain' }}" == "true" ]; then
Expand Down
35 changes: 30 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,36 @@ packages = [{ include = "ragstack" }]
[tool.poetry.dependencies]
python = ">=3.9,<3.12"
astrapy = "~0.7.0"
cassio = "~0.1.3"
unstructured = { version = "0.12.5" }
llama-index = { version = "0.9.48", extras = ["langchain"] }
llama-parse = { version = "0.1.4" }
cassio = "~0.1.4"
unstructured = "0.12.5"

# llama-index
llama-index = "0.10.28"
llama-index-vector-stores-astra-db = "0.1.5"
llama-index-vector-stores-cassandra = "0.1.3"
llama-index-embeddings-langchain = "0.1.2"
llama-parse = "0.4.0"
# optional integrations
## azure
llama-index-llms-azure-openai = { version = "0.1.5", optional = true }
llama-index-embeddings-azure-openai = { version = "0.1.6", optional = true }
## bedrock
llama-index-llms-bedrock = { version = "0.1.5", optional = true }
llama-index-embeddings-bedrock = { version = "0.1.4", optional = true }
## google
llama-index-llms-gemini = { version = "0.1.7", optional = true }
llama-index-multi-modal-llms-gemini = { version = "0.1.5", optional = true }
llama-index-llms-vertex = { version = "0.1.5", optional = true }
llama-index-embeddings-gemini = { version = "0.1.6", optional = true }


# langchain
langchain = "0.1.12"
langchain-core = "0.1.31"
langchain-community = "0.0.28"
langchain-astradb = "0.1.0"
langchain-openai = "0.0.8"
langchain-google-genai = { version = "0.0.9", optional = true }
langchain-google-genai = { version = "1.0.1", optional = true }
langchain-google-vertexai = { version = "0.1.0", optional = true }
langchain-nvidia-ai-endpoints = { version = "0.0.3", optional = true }
colbert-ai = { version = "0.2.19", optional = true }
Expand All @@ -33,6 +53,11 @@ langchain-google = ["langchain-google-genai", "langchain-google-vertexai"]
langchain-nvidia = ["langchain-nvidia-ai-endpoints"]
colbert = ["colbert-ai", "pyarrow", "torch"]

llama-index-google = ["llama-index-llms-gemini", "llama-index-multi-modal-llms-gemini", "llama-index-llms-vertex", "llama-index-embeddings-gemini"]
llama-index-azure = ["llama-index-llms-azure-openai", "llama-index-embeddings-azure-openai"]
llama-index-bedrock = ["llama-index-llms-bedrock", "llama-index-embeddings-bedrock"]


[tool.poetry.group.test.dependencies]
pytest = "*"
black = "*"
Expand Down
27 changes: 21 additions & 6 deletions ragstack-e2e-tests/pyproject.langchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pytest = "*"
black = "*"
ruff = "*"
google-cloud-aiplatform = "^1.36.4"
boto3 = "^1.29.6"
huggingface-hub = "^0.20.3"
azure-storage-blob = "^12.19.0"
pillow = "^10.2.0"
Expand All @@ -32,15 +31,31 @@ langchain-core = { git = "https://github.com/langchain-ai/langchain.git", branch
langchain-community = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/community" }
langchain-astradb = { git = "https://github.com/langchain-ai/langchain-datastax.git", branch = "main", subdirectory = "libs/astradb" }
langchain-openai = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/partners/openai" }
langchain-google-genai = { git = "https://github.com/langchain-ai/langchain-google.git", branch = "main", subdirectory = "libs/genai" }
# langchain-google-genai main branch depends on google-generativeai 0.5.x which is not supported by llama-index
#langchain-google-genai = { git = "https://github.com/langchain-ai/langchain-google.git", branch = "main", subdirectory = "libs/genai" }
langchain-google-genai = "1.0.1"
langchain-google-vertexai = { git = "https://github.com/langchain-ai/langchain-google.git", branch = "main", subdirectory = "libs/vertexai" }
langchain-nvidia-ai-endpoints = { git = "https://github.com/langchain-ai/langchain-nvidia.git", branch = "main", subdirectory = "libs/ai-endpoints" }
llama-index = { version = "0.9.48", extras = ["langchain"] }
llama-parse = { version = "0.1.4" }

llama-index = "0.10.28"
llama-index-vector-stores-astra-db = "0.1.5"
llama-index-vector-stores-cassandra = "0.1.3"
llama-index-embeddings-langchain = "0.1.2"
llama-parse = "0.4.0"
llama-index-llms-azure-openai = { version = "0.1.5" }
llama-index-embeddings-azure-openai = { version = "0.1.6" }
llama-index-llms-bedrock = { version = "0.1.5" }
llama-index-embeddings-bedrock = { version = "0.1.4" }
llama-index-llms-gemini = { version = "0.1.7" }
llama-index-multi-modal-llms-gemini = { version = "0.1.5" }
llama-index-llms-vertex = { version = "0.1.5" }
llama-index-embeddings-gemini = { version = "0.1.6" }

llama-index-llms-huggingface = "^0.1.0"

astrapy = "~0.7.0"
# we need this specific feature from cassio: https://github.com/CassioML/cassio/pull/128
cassio = "~0.1.4"
unstructured = { git = "https://github.com/Unstructured-IO/unstructured.git", branch = "main" }
unstructured = "0.12.5"

[build-system]
requires = ["poetry-core"]
Expand Down
5 changes: 2 additions & 3 deletions ragstack-e2e-tests/pyproject.llamaindex.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ python = ">=3.9,<3.12,!=3.9.7"
pytest = "*"
black = "*"
ruff = "*"
google-cloud-aiplatform = "^1.36.4"
boto3 = "^1.29.6"
huggingface-hub = "^0.20.3"
azure-storage-blob = "^12.19.0"
pillow = "^10.2.0"
Expand All @@ -26,6 +24,7 @@ nemoguardrails = "^0.8.0"
beautifulsoup4 = "^4"

llama-index = { git = "https://github.com/run-llama/llama_index.git", branch = "main" }
llama-index-readers-llama-parse = { git = "https://github.com/run-llama/llama_index.git", branch = "main", subdirectory = "llama-index-integrations/readers/llama-index-readers-llama-parse" }
llama-index-embeddings-langchain = { git = "https://github.com/run-llama/llama_index.git", branch = "main", subdirectory = "llama-index-integrations/embeddings/llama-index-embeddings-langchain" }
llama-index-vector-stores-astra-db = { git = "https://github.com/run-llama/llama_index.git", branch = "main", subdirectory = "llama-index-integrations/vector_stores/llama-index-vector-stores-astra-db" }
llama-index-vector-stores-cassandra = { git = "https://github.com/run-llama/llama_index.git", branch = "main", subdirectory = "llama-index-integrations/vector_stores/llama-index-vector-stores-cassandra" }
Expand All @@ -47,7 +46,7 @@ langchain-astradb = "0.1.0"
langchain-core = "0.1.31"
langchain-community = "0.0.28"
langchain-openai = "0.0.8"
langchain-google-genai = "0.0.9"
langchain-google-genai = "1.0.1"
langchain-google-vertexai = "0.1.0"
langchain-nvidia-ai-endpoints = "0.0.3"
astrapy = "~0.7.0"
Expand Down
11 changes: 3 additions & 8 deletions ragstack-e2e-tests/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ python = ">=3.9,<3.12,!=3.9.7"
pytest = "*"
black = "*"
ruff = "*"
boto3 = "^1.34.21"
huggingface-hub = "^0.20.3"
llama-index-embeddings-huggingface = "^0.1.0"
llama-index-llms-huggingface = "^0.1.0"
azure-storage-blob = "^12.19.0"
pillow = "^10.2.0"
testcontainers = "^3.7.1"
Expand All @@ -25,12 +25,7 @@ nemoguardrails = "^0.8.0"
# From LangChain optional deps, needed by WebBaseLoader
beautifulsoup4 = "^4"

ragstack-ai = { path = "../", develop = false, extras = [
"langchain-google",
"langchain-nvidia",
] }
# we need this specific feature from cassio: https://github.com/CassioML/cassio/pull/128
cassio = "~0.1.4"
ragstack-ai = { path = "../", develop = false, extras = ["langchain-google", "langchain-nvidia", "llama-index-google", "llama-index-azure", "llama-index-bedrock"]}

# benchmarks
pyperf = "^2.6.2"
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/test_ragstack.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def test_import():
from llama_index.vector_stores import AstraDBVectorStore # noqa
from llama_index.vector_stores import CassandraVectorStore # noqa
from llama_index.vector_stores.astra_db import AstraDBVectorStore # noqa
from llama_index.vector_stores.cassandra import CassandraVectorStore # noqa
from langchain.vectorstores import AstraDB # noqa
from langchain_astradb import AstraDBVectorStore # noqa
import langchain_core # noqa
Expand Down

0 comments on commit 6eca9c1

Please sign in to comment.