Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,21 @@ Changelog = "https://github.com/googleapis/langchain-google-spanner-python/blob/

[project.optional-dependencies]
lint = [
"black[jupyter]==24.8.0",
"black[jupyter]==24.10.0",
"flake8==6.1.0",
"isort==5.13.2",
]

test = [
"black[jupyter]==24.8.0",
"black[jupyter]==24.10.0",
"bs4==0.0.2",
"flake8==6.1.0",
"isort==5.13.2",
"mypy==1.11.2",
"pytest==8.3.3",
"pytest-asyncio==0.24.0",
"mypy==1.17.0",
"pytest==8.4.1",
"pytest-asyncio==0.26.0",
"pytest-cov==5.0.0",
"langchain_google_vertexai==2.0.8"
"langchain_google_vertexai==2.0.27"
]

[build-system]
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
google-cloud-spanner==3.51.0
langchain-core==0.3.15
langchain-community==0.3.1
pydantic==2.9.1
google-cloud-spanner==3.55.0
langchain-core==0.3.71
langchain-community==0.3.27
pydantic==2.11.7
2 changes: 1 addition & 1 deletion src/langchain_google_spanner/vector_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ def _generate_sql_for_ANN(
distance_alias = DISTANCE_SEARCH_QUERY_ALIAS
sql = (
f"SELECT {column_names}, {ann_strategy_name}("
+ f"{embedding_column_type}{embedding}, {embedding_column_name}, options => JSON '"
+ f"{embedding_column_type}{[float(dimension) for dimension in embedding]}, {embedding_column_name}, options => JSON '"
+ ('{"num_leaves_to_search": %s}\') as %s\n' % (num_leaves, distance_alias))
+ f"FROM {table_name}"
+ "@{FORCE_INDEX="
Expand Down