mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-01 02:50:47 +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:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user