Skip to content

Commit e47a143

Browse files
authored
Add langchain-astradb package (#314)
1 parent c55957d commit e47a143

File tree

5 files changed

+19
-12
lines changed

5 files changed

+19
-12
lines changed

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ packages = [{ include = "ragstack" }]
1313
python = ">=3.9,<3.12"
1414
astrapy = "~0.7.0"
1515
cassio = "~0.1.3"
16-
unstructured = { version = "0.12.5" }
16+
unstructured = "0.12.5"
1717
llama-index = { version = "0.9.48", extras = ["langchain"] }
18-
llama-parse = { version = "0.1.4" }
19-
langchain = { version = "0.1.4" }
18+
llama-parse = "0.1.4"
19+
langchain = "0.1.4"
20+
langchain-astradb = "0.0.1"
2021
langchain-core = "0.1.16"
2122
langchain-community = "0.0.16"
22-
langchain-openai = { version = "0.0.3" }
23+
langchain-openai = "0.0.3"
2324
langchain-google-genai = { version = "0.0.6", optional = true }
2425
langchain-google-vertexai = { version = "0.0.3", optional = true }
2526
langchain-nvidia-ai-endpoints = { version = "0.0.1", optional = true }

ragstack-e2e-tests/pyproject.langchain.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ beautifulsoup4 = "^4"
2727
langchain = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/langchain", extras = [
2828
"openai",
2929
] }
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" }
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" }
3233
langchain-openai = { git = "https://github.com/langchain-ai/langchain.git", branch = "master", subdirectory = "libs/partners/openai" }
3334
langchain-google-genai = { git = "https://github.com/langchain-ai/langchain-google.git", branch = "main", subdirectory = "libs/genai" }
3435
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: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,18 @@ 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 = { version = "0.1.2" }
44+
langchain = "0.1.2"
45+
langchain-astradb = "0.0.1"
4546
langchain-core = "0.1.15"
4647
langchain-community = "0.0.15"
47-
langchain-openai = { version = "0.0.3" }
48-
langchain-google-genai = { version = "0.0.6" }
49-
langchain-google-vertexai = { version = "0.0.3" }
50-
langchain-nvidia-ai-endpoints = { version = "0.0.1" }
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"
5152
astrapy = "~0.7.0"
5253
# we need this specific feature from cassio: https://github.com/CassioML/cassio/pull/128
5354
cassio = "~0.1.4"
54-
unstructured = { version = "0.12.5" }
55+
unstructured = "0.12.5"
5556

5657
[build-system]
5758
requires = ["poetry-core"]

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ 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+
3134
[build-system]
3235
requires = ["poetry-core"]
3336
build-backend = "poetry.core.masonry.api"

tests/unit-tests/test_ragstack.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ 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
56
import langchain_core # noqa
67
import langsmith # noqa
78
import astrapy # noqa

0 commit comments

Comments
 (0)