|
|
|
@ -4,6 +4,7 @@ from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Tuple
|
|
|
|
|
|
|
|
|
|
from langchain_core._api.deprecation import deprecated
|
|
|
|
|
from langchain_core.callbacks import CallbackManagerForRetrieverRun
|
|
|
|
|
from langchain_core.documents import Document
|
|
|
|
|
from langchain_core.pydantic_v1 import BaseModel, Extra, Field, root_validator
|
|
|
|
@ -195,6 +196,11 @@ class _BaseGoogleVertexAISearchRetriever(BaseModel):
|
|
|
|
|
return documents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@deprecated(
|
|
|
|
|
since="0.0.33",
|
|
|
|
|
removal="0.2.0",
|
|
|
|
|
alternative_import="langchain_google_community.VertexAISearchRetriever",
|
|
|
|
|
)
|
|
|
|
|
class GoogleVertexAISearchRetriever(BaseRetriever, _BaseGoogleVertexAISearchRetriever):
|
|
|
|
|
"""`Google Vertex AI Search` retriever.
|
|
|
|
|
|
|
|
|
@ -390,6 +396,11 @@ class GoogleVertexAISearchRetriever(BaseRetriever, _BaseGoogleVertexAISearchRetr
|
|
|
|
|
return documents, response
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@deprecated(
|
|
|
|
|
since="0.0.33",
|
|
|
|
|
removal="0.2.0",
|
|
|
|
|
alternative_import="langchain_google_community.VertexAIMultiTurnSearchRetriever",
|
|
|
|
|
)
|
|
|
|
|
class GoogleVertexAIMultiTurnSearchRetriever(
|
|
|
|
|
BaseRetriever, _BaseGoogleVertexAISearchRetriever
|
|
|
|
|
):
|
|
|
|
|