DiamondYin commited on
Commit
d6baaa7
1 Parent(s): 5036a03

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +2 -2
app_utils.py CHANGED
@@ -45,8 +45,8 @@ def initialize_knowledge_base():
45
  # Embed each chunk of text
46
  embeddings = []
47
  openAI_embeddings = OpenAIEmbeddings()
48
- for text in doc_texts:
49
- #doc = Document.from_text(text)
50
  embedding = openAI_embeddings.embed_documents(text)
51
  embeddings.append(embedding)
52
 
 
45
  # Embed each chunk of text
46
  embeddings = []
47
  openAI_embeddings = OpenAIEmbeddings()
48
+ for doc in doc_texts:
49
+ text = str(doc)
50
  embedding = openAI_embeddings.embed_documents(text)
51
  embeddings.append(embedding)
52