Skip to content

Commit 4b999a2

Browse files
authored
revert astra package and upgrade langchain (#320)
1 parent fbb744f commit 4b999a2

File tree

6 files changed

+29
-27
lines changed

6 files changed

+29
-27
lines changed

.snyk

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ version: v1.25.0
44
ignore:
55
SNYK-PYTHON-LLAMAINDEX-5843542:
66
- '*':
7-
reason: False positive, fixed by https://github.com/run-llama/llama_index/pull/8890
7+
reason: >-
8+
False positive, fixed by
9+
https://github.com/run-llama/llama_index/pull/8890
810
expires: 2025-01-31T15:54:04.149Z
911
created: 2023-12-11T15:54:04.157Z
12+
SNYK-PYTHON-LLAMAINDEX-6184684:
13+
- '*':
14+
reason: >-
15+
False positive, fixed by
16+
https://github.com/run-llama/llama_index/pull/8890
17+
expires: 2025-01-31T15:54:04.149Z
18+
created: 2024-03-13T10:14:18.712Z
1019
patch: {}

pyproject.toml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@ packages = [{ include = "ragstack" }]
1313
python = ">=3.9,<3.12"
1414
astrapy = "~0.7.0"
1515
cassio = "~0.1.3"
16-
unstructured = "0.12.5"
16+
unstructured = { version = "0.12.5" }
1717
llama-index = { version = "0.9.48", extras = ["langchain"] }
18-
llama-parse = "0.1.4"
19-
langchain = "0.1.4"
20-
langchain-astradb = "0.0.1"
21-
langchain-core = "0.1.16"
22-
langchain-community = "0.0.16"
23-
langchain-openai = "0.0.3"
24-
langchain-google-genai = { version = "0.0.6", optional = true }
25-
langchain-google-vertexai = { version = "0.0.3", optional = true }
26-
langchain-nvidia-ai-endpoints = { version = "0.0.1", optional = true }
18+
llama-parse = { version = "0.1.4" }
19+
langchain = "0.1.12"
20+
langchain-core = "0.1.31"
21+
langchain-community = "0.0.28"
22+
langchain-openai = "0.0.8"
23+
langchain-google-genai = { version = "0.0.9", optional = true }
24+
langchain-google-vertexai = { version = "0.1.0", optional = true }
25+
langchain-nvidia-ai-endpoints = { version = "0.0.3", optional = true }
2726

2827
[tool.poetry.extras]
2928
langchain-google = ["langchain-google-genai", "langchain-google-vertexai"]

ragstack-e2e-tests/pyproject.langchain.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ beautifulsoup4 = "^4"
2727
langchain = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/langchain", extras = [
2828
"openai",
2929
] }
30-
langchain-astradb = { git = "https://github.com/langchain-ai/langchain-datastax.git", branch = "main", subdirectory = "libs/astradb" }
31-
langchain-core = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/core" }
32-
langchain-community = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/community" }
30+
langchain_core = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/core" }
31+
langchain_community = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/community" }
3332
langchain-openai = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/partners/openai" }
3433
langchain-google-genai = { git = "https://github.com/langchain-ai/langchain-google.git", branch = "main", subdirectory = "libs/genai" }
3534
langchain-google-vertexai = { git = "https://github.com/langchain-ai/langchain-google.git", branch = "main", subdirectory = "libs/vertexai" }

ragstack-e2e-tests/pyproject.llamaindex.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,17 @@ llama-index-multi-modal-llms-gemini = { git = "https://github.com/run-llama/llam
4141

4242
llama-parse = { git = "https://github.com/run-llama/llama_parse.git", branch = "main" }
4343

44-
langchain = "0.1.2"
45-
langchain-astradb = "0.0.1"
46-
langchain-core = "0.1.15"
47-
langchain-community = "0.0.15"
48-
langchain-openai = "0.0.3"
49-
langchain-google-genai = "0.0.6"
50-
langchain-google-vertexai = "0.0.3"
51-
langchain-nvidia-ai-endpoints = "0.0.1"
44+
langchain = "0.1.12"
45+
langchain-core = "0.1.31"
46+
langchain-community = "0.0.28"
47+
langchain-openai = "0.0.8"
48+
langchain-google-genai = "0.0.9"
49+
langchain-google-vertexai = "0.1.0"
50+
langchain-nvidia-ai-endpoints = "0.0.3"
5251
astrapy = "~0.7.0"
5352
# we need this specific feature from cassio: https://github.com/CassioML/cassio/pull/128
5453
cassio = "~0.1.4"
55-
unstructured = "0.12.5"
54+
unstructured = { version = "0.12.5" }
5655

5756
[build-system]
5857
requires = ["poetry-core"]

ragstack-e2e-tests/pyproject.ragstack-ai.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ beautifulsoup4 = "^4"
2828
# we need this specific feature from cassio: https://github.com/CassioML/cassio/pull/128
2929
cassio = "~0.1.4"
3030

31-
# Remove when langchain-astradb is part of ragstack-ai package
32-
langchain-astradb = "0.0.1"
33-
3431
[build-system]
3532
requires = ["poetry-core"]
3633
build-backend = "poetry.core.masonry.api"

tests/unit-tests/test_ragstack.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ def test_import():
22
from llama_index.vector_stores import AstraDBVectorStore # noqa
33
from llama_index.vector_stores import CassandraVectorStore # noqa
44
from langchain.vectorstores import AstraDB # noqa
5-
from langchain_astradb import AstraDBVectorStore # noqa
65
import langchain_core # noqa
76
import langsmith # noqa
87
import astrapy # noqa

0 commit comments

Comments
 (0)