From b632cb98f45ef33d2dba2bf5fc4e245227f1cdb3 Mon Sep 17 00:00:00 2001 From: Leonid Kuligin Date: Tue, 25 Jun 2024 16:38:38 +0200 Subject: [PATCH] Fix deps (#329) --- .../langchain_google_community/bq_storage_vectorstores/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_google_community/bq_storage_vectorstores/_base.py b/libs/community/langchain_google_community/bq_storage_vectorstores/_base.py index 650f818c..b69d432f 100644 --- a/libs/community/langchain_google_community/bq_storage_vectorstores/_base.py +++ b/libs/community/langchain_google_community/bq_storage_vectorstores/_base.py @@ -10,7 +10,6 @@ from typing import Any, Dict, List, Optional, Tuple, Type, Union, cast import numpy as np -from google.cloud.exceptions import NotFound from langchain_community.vectorstores.utils import maximal_marginal_relevance from langchain_core.documents import Document from langchain_core.embeddings import Embeddings @@ -169,6 +168,7 @@ def full_table_id(self) -> str: def _validate_bq_table(self) -> Any: from google.cloud import bigquery # type: ignore[attr-defined] + from google.cloud.exceptions import NotFound table_ref = bigquery.TableReference.from_string(self.full_table_id)