Skip to content

armgit / storm

Public Imported from GitHub
0

An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.

fixed the naming of the class in the example script

AMMAS1db03f3ec122e
diff --git a/examples/run_storm_wiki_gpt_with_VectorRM.py b/examples/run_storm_wiki_gpt_with_VectorRM.py
index 320610e..5f52dff 100644
--- a/examples/run_storm_wiki_gpt_with_VectorRM.py
+++ b/examples/run_storm_wiki_gpt_with_VectorRM.py
@@ -34,7 +34,7 @@ sys.path.append('./')
from knowledge_storm import STORMWikiRunnerArguments, STORMWikiRunner, STORMWikiLMConfigs
from knowledge_storm.rm import VectorRM
from knowledge_storm.lm import OpenAIModel, AzureOpenAIModel
-from knowledge_storm.utils import load_api_key, VectorStoreManager
+from knowledge_storm.utils import load_api_key, QdrantVectorStoreManager
def main(args):
@@ -98,12 +98,12 @@ def main(args):
'device': args.device,
}
if args.vector_db_mode == 'offline':
- VectorStoreManager.create_or_update_vector_store(
+ QdrantVectorStoreManager.create_or_update_vector_store(
vector_store_path=args.offline_vector_db_dir,
**kwargs
)
elif args.vector_db_mode == 'online':
- VectorStoreManager.create_or_update_vector_store(
+ QdrantVectorStoreManager.create_or_update_vector_store(
url=args.online_vector_db_url,
api_key=os.getenv('QDRANT_API_KEY'),
**kwargs