mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 19:11:33 +00:00
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:
parent
6da2246215
commit
9e492620d4
@ -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…
Reference in New Issue
Block a user