mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-09 15:52:38 +02:00
fix
This commit is contained in:
parent
f14fee9b0d
commit
c2a280d72e
5 changed files with 45 additions and 57 deletions
|
|
@ -29,10 +29,8 @@ class RAGIndexFactory(ConfigFactory):
|
|||
embed_model = self.extract_embed_model(config, **kwargs)
|
||||
|
||||
vector_store = FaissVectorStore.from_persist_dir(str(config.persist_path))
|
||||
storage_context = StorageContext.from_defaults(
|
||||
vector_store=vector_store, persist_dir=config.persist_path, embed_mode=embed_model
|
||||
)
|
||||
index = load_index_from_storage(storage_context=storage_context)
|
||||
storage_context = StorageContext.from_defaults(vector_store=vector_store, persist_dir=config.persist_path)
|
||||
index = load_index_from_storage(storage_context=storage_context, embed_model=embed_model)
|
||||
return index
|
||||
|
||||
def _create_chroma(self, config: ChromaIndexConfig, **kwargs) -> VectorStoreIndex:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue