瀏覽代碼

fix: clean up two unreachable code (#20773)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
tags/1.4.2
yihong 4 月之前
父節點
當前提交
65c7c01d90
No account linked to committer's email address

+ 0
- 1
api/core/rag/datasource/vdb/oracle/oraclevector.py 查看文件

@@ -303,7 +303,6 @@ class OracleVector(BaseVector):
return docs
else:
return [Document(page_content="", metadata={})]
return []

def delete(self) -> None:
with self._get_connection() as conn:

+ 0
- 2
api/core/tools/utils/dataset_retriever/dataset_multi_retriever_tool.py 查看文件

@@ -153,8 +153,6 @@ class DatasetMultiRetrieverTool(DatasetRetrieverBaseTool):
return str("\n".join(document_context_list))
return ""

raise RuntimeError("not segments found")

def _retriever(
self,
flask_app: Flask,

Loading…
取消
儲存