Spaces:
Runtime error
Runtime error
updated vectorizer
Browse files- vectorize.py +1 -1
vectorize.py
CHANGED
@@ -38,7 +38,7 @@ class VectorDataBase():
|
|
38 |
return 'Some issues'
|
39 |
@staticmethod
|
40 |
def add_collection_database(doc):
|
41 |
-
|
42 |
{
|
43 |
'text': doc.page_content,
|
44 |
'embedding': embeddings.embed_query(doc.page_content),
|
|
|
38 |
return 'Some issues'
|
39 |
@staticmethod
|
40 |
def add_collection_database(doc):
|
41 |
+
self.db_collection.insert_one(
|
42 |
{
|
43 |
'text': doc.page_content,
|
44 |
'embedding': embeddings.embed_query(doc.page_content),
|