mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 03:46:23 +02:00
revert: faiss store
This commit is contained in:
parent
280fd62c94
commit
b9e3886e30
1 changed files with 1 additions and 5 deletions
|
|
@ -38,11 +38,7 @@ class FaissStore(LocalStore):
|
|||
return store
|
||||
|
||||
def _write(self, docs, metadatas):
|
||||
store = FAISS.from_texts(
|
||||
docs,
|
||||
OpenAIEmbeddings(openai_api_version="2020-11-07"),
|
||||
metadatas=metadatas,
|
||||
)
|
||||
store = FAISS.from_texts(docs, OpenAIEmbeddings(openai_api_version="2020-11-07"), metadatas=metadatas)
|
||||
return store
|
||||
|
||||
def persist(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue