mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-30 13:35:09 +02:00
chore[deps]: upgrade dependencies with uv lock --upgrade (#5358)
* chore: upgrade dependencies with `uv lock --upgrade` * linting * upgrade PR title --------- Co-authored-by: sydney-runkle <54324534+sydney-runkle@users.noreply.github.com> Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com>
This commit is contained in:
co-authored by
sydney-runkle
Sydney Runkle
parent
4c73b176ff
commit
87f2e69395
@@ -448,10 +448,8 @@ class BasePostgresStore(Generic[C]):
|
||||
|
||||
score_operator, post_operator = get_distance_operator(self)
|
||||
post_operator = post_operator.replace("scored", "uniq")
|
||||
vector_type = (
|
||||
cast(PostgresIndexConfig, self.index_config)
|
||||
.get("ann_index_config", {})
|
||||
.get("vector_type", "vector")
|
||||
vector_type = self.index_config.get("ann_index_config", {}).get(
|
||||
"vector_type", "vector"
|
||||
)
|
||||
|
||||
# For hamming bit vectors, or “regular” vectors
|
||||
@@ -1141,7 +1139,7 @@ def _get_vector_type_ops(store: BasePostgresStore) -> str:
|
||||
if not store.index_config:
|
||||
return "vector_cosine_ops"
|
||||
|
||||
config = cast(PostgresIndexConfig, store.index_config)
|
||||
config = store.index_config
|
||||
index_config = config.get("ann_index_config", _DEFAULT_ANN_CONFIG).copy()
|
||||
vector_type = cast(str, index_config.get("vector_type", "vector"))
|
||||
if vector_type not in ("vector", "halfvec"):
|
||||
|
||||
Reference in New Issue
Block a user