Skip to content

Commit 5976e1c

Browse files
authored
Add langchain-astradb package (part2) (#323)
1 parent 4c016a7 commit 5976e1c

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ llama-parse = { version = "0.1.4" }
1919
langchain = "0.1.12"
2020
langchain-core = "0.1.31"
2121
langchain-community = "0.0.28"
22+
langchain-astradb = "0.0.1"
2223
langchain-openai = "0.0.8"
2324
langchain-google-genai = { version = "0.0.9", optional = true }
2425
langchain-google-vertexai = { version = "0.1.0", 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-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" }
32+
langchain-astradb = { git = "https://github.com/langchain-ai/langchain-datastax.git", branch = "main", subdirectory = "libs/astradb" }
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ llama-index-multi-modal-llms-gemini = { git = "https://github.com/run-llama/llam
4242
llama-parse = { git = "https://github.com/run-llama/llama_parse.git", branch = "main" }
4343

4444
langchain = "0.1.12"
45+
langchain-astradb = "0.0.1"
4546
langchain-core = "0.1.31"
4647
langchain-community = "0.0.28"
4748
langchain-openai = "0.0.8"
4849
langchain-google-genai = "0.0.9"
4950
langchain-google-vertexai = "0.1.0"
5051
langchain-nvidia-ai-endpoints = "0.0.3"
5152
astrapy = "~0.7.0"
52-
# we need this specific feature from cassio: https://github.com/CassioML/cassio/pull/128
5353
cassio = "~0.1.4"
54-
unstructured = { version = "0.12.5" }
54+
unstructured = "0.12.5"
5555

5656
[build-system]
5757
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)