DiamondYin commited on
Commit
19aff59
1 Parent(s): 39850df

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +5 -5
app_utils.py CHANGED
@@ -43,11 +43,11 @@ def initialize_knowledge_base():
43
 
44
  #调整embeddings
45
 
46
- from langchain.embeddings import HuggingFaceEmbeddings
47
- embedding = HuggingFaceInstructEmbeddings(model_name = "hkunlp/instructor-large")
48
-
49
- #openAI_embeddings = OpenAIEmbeddings()
50
- #vStore = Chroma.from_documents(doc_texts, openAI_embeddings)
51
  #调整模型
52
 
53
 
 
43
 
44
  #调整embeddings
45
 
46
+ #from langchain.embeddings import HuggingFaceEmbeddings
47
+ #embedding = HuggingFaceEmbeddings(model_name = "hkunlp/instructor-large")
48
+
49
+ openAI_embeddings = OpenAIEmbeddings()
50
+ vStore = Chroma.from_documents(doc_texts, openAI_embeddings)
51
  #调整模型
52
 
53