diff --git a/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py b/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py index 27a595d62..89770f0d2 100644 --- a/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py +++ b/packages/jupyter-ai/jupyter_ai/chat_handlers/learn.py @@ -267,7 +267,9 @@ async def relearn(self, metadata: IndexMetadata): for dir in metadata.dirs: # TODO: do not relearn directories in serial, but instead # concurrently or in parallel - await self.learn_dir(dir.path, dir.chunk_size, dir.chunk_overlap, all_files=False) + await self.learn_dir( + dir.path, dir.chunk_size, dir.chunk_overlap, all_files=False + ) self.save()