Skip to content

Commit 1d9319c

Browse files
chore(deps): update python-nonmajor (#152)
* chore(deps): update python-nonmajor * fix for numpy 2 * Update vector_store.py --------- Co-authored-by: Averi Kitsch <[email protected]>
1 parent cc156f3 commit 1d9319c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,21 @@ Changelog = "https://github.com/googleapis/langchain-google-spanner-python/blob/
3636

3737
[project.optional-dependencies]
3838
lint = [
39-
"black[jupyter]==24.8.0",
39+
"black[jupyter]==24.10.0",
4040
"flake8==6.1.0",
4141
"isort==5.13.2",
4242
]
4343

4444
test = [
45-
"black[jupyter]==24.8.0",
45+
"black[jupyter]==24.10.0",
4646
"bs4==0.0.2",
4747
"flake8==6.1.0",
4848
"isort==5.13.2",
49-
"mypy==1.11.2",
50-
"pytest==8.3.3",
51-
"pytest-asyncio==0.24.0",
49+
"mypy==1.17.0",
50+
"pytest==8.4.1",
51+
"pytest-asyncio==0.26.0",
5252
"pytest-cov==5.0.0",
53-
"langchain_google_vertexai==2.0.8"
53+
"langchain_google_vertexai==2.0.27"
5454
]
5555

5656
[build-system]

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-spanner==3.51.0
2-
langchain-core==0.3.15
3-
langchain-community==0.3.1
4-
pydantic==2.9.1
1+
google-cloud-spanner==3.55.0
2+
langchain-core==0.3.71
3+
langchain-community==0.3.27
4+
pydantic==2.11.7

src/langchain_google_spanner/vector_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ def _generate_sql_for_ANN(
11221122
distance_alias = DISTANCE_SEARCH_QUERY_ALIAS
11231123
sql = (
11241124
f"SELECT {column_names}, {ann_strategy_name}("
1125-
+ f"{embedding_column_type}{embedding}, {embedding_column_name}, options => JSON '"
1125+
+ f"{embedding_column_type}{[float(dimension) for dimension in embedding]}, {embedding_column_name}, options => JSON '"
11261126
+ ('{"num_leaves_to_search": %s}\') as %s\n' % (num_leaves, distance_alias))
11271127
+ f"FROM {table_name}"
11281128
+ "@{FORCE_INDEX="

0 commit comments

Comments
 (0)