This commit is contained in:
jinli.yl 2026-05-12 20:47:43 +08:00
parent ef0b74b3e7
commit 7cd2838c98

View file

@ -1,7 +1,5 @@
"""In-memory file store with JSONL persistence on close.""" """In-memory file store with JSONL persistence on close."""
from __future__ import annotations
from pathlib import Path from pathlib import Path
import numpy as np import numpy as np
@ -117,7 +115,7 @@ class LocalFileStore(BaseFileStore):
# Search # Search
async def vector_search( async def vector_search(
self, query: str, limit: int, search_filter: dict, self, query: str, limit: int, search_filter: dict,
) -> list[FileChunk]: ) -> list[FileChunk]:
if not self.vector_enabled or not query: if not self.vector_enabled or not query:
return [] return []
@ -140,7 +138,7 @@ class LocalFileStore(BaseFileStore):
return results[:limit] return results[:limit]
async def keyword_search( async def keyword_search(
self, query: str, limit: int, search_filter: dict, self, query: str, limit: int, search_filter: dict,
) -> list[FileChunk]: ) -> list[FileChunk]:
if not self.fts_enabled or not query.split(): if not self.fts_enabled or not query.split():
return [] return []