Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cyyeh committed Aug 26, 2024
1 parent 7eea39c commit 99417d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wren-ai-service/src/providers/document_store/qdrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ async def delete_documents(self, filters: Optional[Dict[str, Any]] = None):
)

async def count_documents(self, filters: Optional[Dict[str, Any]] = None) -> int:
qdrant_filters = convert_filters_to_qdrant(filters)
if not filters:
qdrant_filters = rest.Filter()
else:
qdrant_filters = convert_filters_to_qdrant(filters)

return (
await self.async_client.count(
Expand Down

0 comments on commit 99417d4

Please sign in to comment.