fix: clean up two unreachable code (#20773)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
This commit is contained in:
@@ -303,7 +303,6 @@ class OracleVector(BaseVector):
|
|||||||
return docs
|
return docs
|
||||||
else:
|
else:
|
||||||
return [Document(page_content="", metadata={})]
|
return [Document(page_content="", metadata={})]
|
||||||
return []
|
|
||||||
|
|
||||||
def delete(self) -> None:
|
def delete(self) -> None:
|
||||||
with self._get_connection() as conn:
|
with self._get_connection() as conn:
|
||||||
|
@@ -153,8 +153,6 @@ class DatasetMultiRetrieverTool(DatasetRetrieverBaseTool):
|
|||||||
return str("\n".join(document_context_list))
|
return str("\n".join(document_context_list))
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
raise RuntimeError("not segments found")
|
|
||||||
|
|
||||||
def _retriever(
|
def _retriever(
|
||||||
self,
|
self,
|
||||||
flask_app: Flask,
|
flask_app: Flask,
|
||||||
|
Reference in New Issue
Block a user