From fb2c518eab930ac5f84d209cebc6a8e45c0872bd Mon Sep 17 00:00:00 2001 From: ChihYu Yeh Date: Fri, 28 Mar 2025 17:30:20 +0800 Subject: [PATCH] fix --- wren-ai-service/src/pipelines/indexing/instructions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wren-ai-service/src/pipelines/indexing/instructions.py b/wren-ai-service/src/pipelines/indexing/instructions.py index 4c376f2310..83a3f70707 100644 --- a/wren-ai-service/src/pipelines/indexing/instructions.py +++ b/wren-ai-service/src/pipelines/indexing/instructions.py @@ -166,12 +166,12 @@ async def run( @observe(name="Clean Documents for Instructions") async def clean( self, - instructions: List[Instruction], + instructions: Optional[List[Instruction]] = None, project_id: Optional[str] = None, delete_all: bool = False, ) -> None: await clean( - instructions=instructions, + instructions=instructions or [], cleaner=self._components["cleaner"], project_id=project_id, delete_all=delete_all,