From 7cd2838c98127179b7e10d8f2094de36f8348ded Mon Sep 17 00:00:00 2001 From: "jinli.yl" Date: Tue, 12 May 2026 20:47:43 +0800 Subject: [PATCH] up --- reme2/component/file_store/local_file_store.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/reme2/component/file_store/local_file_store.py b/reme2/component/file_store/local_file_store.py index 55ed3481..c16d3f0d 100644 --- a/reme2/component/file_store/local_file_store.py +++ b/reme2/component/file_store/local_file_store.py @@ -1,7 +1,5 @@ """In-memory file store with JSONL persistence on close.""" -from __future__ import annotations - from pathlib import Path import numpy as np @@ -117,7 +115,7 @@ class LocalFileStore(BaseFileStore): # Search async def vector_search( - self, query: str, limit: int, search_filter: dict, + self, query: str, limit: int, search_filter: dict, ) -> list[FileChunk]: if not self.vector_enabled or not query: return [] @@ -140,7 +138,7 @@ class LocalFileStore(BaseFileStore): return results[:limit] async def keyword_search( - self, query: str, limit: int, search_filter: dict, + self, query: str, limit: int, search_filter: dict, ) -> list[FileChunk]: if not self.fts_enabled or not query.split(): return [] @@ -168,4 +166,4 @@ class LocalFileStore(BaseFileStore): base = matches / len(words) if len(words) > 1 and query.lower() in text_lower: base = min(1.0, base + 0.2) - return base \ No newline at end of file + return base