typing fixes

This commit is contained in:
LUIS NOVO 2024-11-01 21:40:28 -03:00
parent c15982af3f
commit 3b36caceb9
3 changed files with 20 additions and 8 deletions

View file

@ -265,7 +265,9 @@ def text_search(keyword: str, results: int, source: bool = True, note: bool = Tr
raise DatabaseOperationError("Failed to perform text search")
def vector_search(keyword: str, results: int, source: bool = True, note: bool = True):
def vector_search(
keyword: List[float], results: int, source: bool = True, note: bool = True
):
if not keyword:
raise InvalidInputError("Search keyword cannot be empty")
try: