mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-29 11:09:07 +00:00
fixed an UnboundLocalError when no documents are found (#12995)
Replace this entire comment with: - **Description:** fixed a bug - **Issue:** the issue # #12780
This commit is contained in:
parent
b6f70d776b
commit
f3fcdea574
@ -160,6 +160,7 @@ class _BaseGoogleVertexAISearchRetriever(BaseModel):
|
|||||||
from google.protobuf.json_format import MessageToDict
|
from google.protobuf.json_format import MessageToDict
|
||||||
|
|
||||||
documents: List[Document] = []
|
documents: List[Document] = []
|
||||||
|
chunk_type = "extractive_answers"
|
||||||
|
|
||||||
for result in results:
|
for result in results:
|
||||||
document_dict = MessageToDict(
|
document_dict = MessageToDict(
|
||||||
|
Loading…
Reference in New Issue
Block a user