feat: search时不必设置IndexRepo的min/max_token_count

This commit is contained in:
莘权 马 2024-09-06 11:07:31 +08:00
parent ad80dab678
commit 95bf4c3e22
3 changed files with 39 additions and 14 deletions

View file

@ -692,9 +692,7 @@ async def test_index_repo():
chat_files, uploads_files, other_files = await mock_index_repo()
editor = Editor()
rsp = await editor.search_index_repo(
query="业务线", files_or_paths=chat_files + uploads_files + other_files, min_token_count=0
)
rsp = await editor.search_index_repo(query="业务线", files_or_paths=chat_files + uploads_files + other_files)
assert rsp
shutil.rmtree(CHATS_ROOT)