From e797cac0559c45ec318d07b7f7c791032f8c9174 Mon Sep 17 00:00:00 2001 From: numb3r3 Date: Tue, 13 Sep 2022 15:16:08 +0800 Subject: [PATCH] fix: always return docarray as search result --- client/clip_client/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/clip_client/client.py b/client/clip_client/client.py index f30d7e5da..fc851a6de 100644 --- a/client/clip_client/client.py +++ b/client/clip_client/client.py @@ -683,7 +683,7 @@ def search(self, content, **kwargs) -> 'DocumentArray': if hasattr(c, 'tags') and c.tags.pop('__loaded_by_CAS__', False): c.pop('blob') - return self._unboxed_result(results) + return results @overload async def asearch( @@ -744,4 +744,4 @@ async def asearch(self, content, **kwargs): if hasattr(c, 'tags') and c.tags.pop('__loaded_by_CAS__', False): c.pop('blob') - return self._unboxed_result(results) + return results