mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-23 15:48:11 +02:00
feat: rename similarity_search
This commit is contained in:
parent
42ae38a3df
commit
3d6286ca9a
4 changed files with 14 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue