mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-14 15:25:17 +02:00
Merge pull request #24 from send18/feature-faiss-kwargs
faiss search kwargs
This commit is contained in:
commit
7115ab2c01
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class FaissStore(LocalStore):
|
|||
store.index = index
|
||||
|
||||
def search(self, query, expand_cols=False, sep='\n', *args, k=5, **kwargs):
|
||||
rsp = self.store.similarity_search(query, k=k)
|
||||
rsp = self.store.similarity_search(query, k=k, **kwargs)
|
||||
logger.debug(rsp)
|
||||
if expand_cols:
|
||||
return str(sep.join([f"{x.page_content}: {x.metadata}" for x in rsp]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue