Kate0816 commited on
Commit
07edb0a
·
1 Parent(s): cbaf5d0

Update modules/index_func.py

Browse files
Files changed (1) hide show
  1. modules/index_func.py +2 -0
modules/index_func.py CHANGED
@@ -119,6 +119,8 @@ def construct_index(
119
  model=os.environ["AZURE_EMBEDDING_MODEL_NAME"], openai_api_base=os.environ["AZURE_OPENAI_API_BASE_URL"], openai_api_type="azure")
120
  if os.path.exists(index_path) and load_from_cache_if_possible:
121
  logging.info("找到了缓存的索引文件,加载中……")
 
 
122
  return FAISS.load_local(index_path, embeddings)
123
  else:
124
  try:
 
119
  model=os.environ["AZURE_EMBEDDING_MODEL_NAME"], openai_api_base=os.environ["AZURE_OPENAI_API_BASE_URL"], openai_api_type="azure")
120
  if os.path.exists(index_path) and load_from_cache_if_possible:
121
  logging.info("找到了缓存的索引文件,加载中……")
122
+ logging.info(f"index_path: {index_path}{index_name}")
123
+ logging.info(f"index_name: {index_name}")
124
  return FAISS.load_local(index_path, embeddings)
125
  else:
126
  try: