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.
pull/15078/head
Corey Brown 10 months ago committed by GitHub
parent 6da2246215
commit 9e492620d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save