feat: rename similarity_search

This commit is contained in:
莘权 马 2024-09-12 11:19:36 +08:00
parent 42ae38a3df
commit 3d6286ca9a
4 changed files with 14 additions and 14 deletions

View file

@ -692,11 +692,11 @@ async def test_index_repo():
chat_path, UPLOAD_ROOT, src_path = await mock_index_repo()
editor = Editor()
rsp = await editor.search_index_repo(query="业务线", file_or_path=chat_path)
rsp = await editor.similarity_search(query="业务线", file_or_path=chat_path)
assert rsp
rsp = await editor.search_index_repo(query="业务线", file_or_path=UPLOAD_ROOT)
rsp = await editor.similarity_search(query="业务线", file_or_path=UPLOAD_ROOT)
assert rsp
rsp = await editor.search_index_repo(query="业务线", file_or_path=src_path)
rsp = await editor.similarity_search(query="业务线", file_or_path=src_path)
assert rsp
shutil.rmtree(CHATS_ROOT)