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.
This commit is contained in:
Corey Brown 2023-12-22 16:20:53 -05:00 committed by GitHub
parent 6da2246215
commit 9e492620d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(