bytedancerneat commited on
Commit
2af07ab
·
verified ·
1 Parent(s): ccd389a

Update util/vector_base.py

Browse files
Files changed (1) hide show
  1. util/vector_base.py +1 -1
util/vector_base.py CHANGED
@@ -21,7 +21,7 @@ def get_or_create_vector_base(collection_name: str, embedding, documents=None) -
21
  方法批量初始化vector store而是for循环逐个加入,同时使用sleep,以此避免调用openai的接口达到最大
22
  上限而导致初始化失败。
23
  """
24
- persist_directory = "C://Users//Admin//Desktop//PDPO//NLL_LLM//store//" +collection_name
25
  persist_path = Path(persist_directory)
26
  if not persist_path.exists and not documents:
27
  raise ValueError("vector store does not exist and documents is empty")
 
21
  方法批量初始化vector store而是for循环逐个加入,同时使用sleep,以此避免调用openai的接口达到最大
22
  上限而导致初始化失败。
23
  """
24
+ persist_directory = "/home/user/app/store/" +collection_name
25
  persist_path = Path(persist_directory)
26
  if not persist_path.exists and not documents:
27
  raise ValueError("vector store does not exist and documents is empty")