From 9e492620d4773ca0aa347c7bfa0288d4ab0048f3 Mon Sep 17 00:00:00 2001 From: Corey Brown Date: Fri, 22 Dec 2023 16:20:53 -0500 Subject: [PATCH] Don't reassign chunk_type (#14923) **Description**: The parameter chunk_type was being hard coded to "extractive_answers", so that when "snippet" was being passed, it was being ignored. This change simply doesn't do that. --- .../langchain_community/retrievers/google_vertex_ai_search.py | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/community/langchain_community/retrievers/google_vertex_ai_search.py b/libs/community/langchain_community/retrievers/google_vertex_ai_search.py index 2ed46927014..622eea6871a 100644 --- a/libs/community/langchain_community/retrievers/google_vertex_ai_search.py +++ b/libs/community/langchain_community/retrievers/google_vertex_ai_search.py @@ -162,7 +162,6 @@ class _BaseGoogleVertexAISearchRetriever(BaseModel): from google.protobuf.json_format import MessageToDict documents: List[Document] = [] - chunk_type = "extractive_answers" for result in results: document_dict = MessageToDict(