Skip to content

Commit

Permalink
typing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinheiroms committed Oct 24, 2024
1 parent 347fb60 commit 4b886b0
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 172 deletions.
6 changes: 3 additions & 3 deletions python/packages/autogen-ext/src/autogen_ext/storage/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def delete_docs(self, ids: Sequence[ItemID], collection_name: Optional[str

async def retrieve_docs(
self,
queries: Sequence[str],
queries: List[str],
collection_name: Optional[str] = None,
n_results: int = 10,
distance_threshold: float = -1,
Expand All @@ -183,7 +183,7 @@ async def get_docs_by_ids(
self,
ids: Optional[Sequence[ItemID]] = None,
collection_name: Optional[str] = None,
include: Optional[Sequence[str]] = None,
include: Optional[List[str]] = None,
**kwargs: Any,
) -> List[Document]:
"""
Expand Down Expand Up @@ -324,7 +324,7 @@ def delete_docs(self, ids: Sequence[ItemID], collection_name: Optional[str] = No

def retrieve_docs(
self,
queries: Sequence[str],
queries: List[str],
collection_name: Optional[str] = None,
n_results: int = 10,
distance_threshold: float = -1,
Expand Down
Loading

0 comments on commit 4b886b0

Please sign in to comment.