Spaces:
Runtime error
Runtime error
DiamondYin
commited on
Commit
•
d6baaa7
1
Parent(s):
5036a03
Update app_utils.py
Browse files- 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
|
49 |
-
|
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 |
|