Skip to content

Commit

Permalink
fix: always return docarray as search result (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
numb3r3 authored Sep 13, 2022
1 parent eca5774 commit 213ecc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/clip_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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

0 comments on commit 213ecc2

Please sign in to comment.