mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-30 12:30:01 +00:00
typing fixes
This commit is contained in:
parent
c15982af3f
commit
3b36caceb9
3 changed files with 20 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue