Tuchuanhuhuhu commited on
Commit
8be0e6b
·
1 Parent(s): 2d5d187

bugfix:总是使用本地embedding

Browse files
Files changed (1) hide show
  1. modules/llama_func.py +1 -1
modules/llama_func.py CHANGED
@@ -143,7 +143,7 @@ def construct_index(
143
  llm_predictor=llm_predictor,
144
  prompt_helper=prompt_helper,
145
  chunk_size_limit=chunk_size_limit,
146
- embed_model=LangchainEmbedding(HuggingFaceEmbeddings()),
147
  )
148
  index = GPTSimpleVectorIndex.from_documents(
149
  documents, service_context=service_context
 
143
  llm_predictor=llm_predictor,
144
  prompt_helper=prompt_helper,
145
  chunk_size_limit=chunk_size_limit,
146
+ embed_model=embed_model,
147
  )
148
  index = GPTSimpleVectorIndex.from_documents(
149
  documents, service_context=service_context