mirror of
https://github.com/hwchase17/langchain.git
synced 2025-05-28 02:29:17 +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
|
||||
|
||||
documents: List[Document] = []
|
||||
chunk_type = "extractive_answers"
|
||||
|
||||
for result in results:
|
||||
document_dict = MessageToDict(
|
||||
|
Loading…
Reference in New Issue
Block a user