Spaces:
Runtime error
Runtime error
v0.8.4
Browse files- src/chromaIntf.py +3 -2
src/chromaIntf.py
CHANGED
@@ -35,7 +35,8 @@ class ChromaIntf():
|
|
35 |
docs = [
|
36 |
Document(
|
37 |
page_content="this is test doc",
|
38 |
-
metadata={"timestamp":1696743148.474055,"ID":"test","source":"test"},
|
|
|
39 |
),
|
40 |
]
|
41 |
|
@@ -134,7 +135,7 @@ class ChromaIntf():
|
|
134 |
|
135 |
|
136 |
async def persist(self):
|
137 |
-
|
138 |
return await dbh.backupFolder("db")
|
139 |
|
140 |
def _uuid(self,uuid_str: str) -> UUID:
|
|
|
35 |
docs = [
|
36 |
Document(
|
37 |
page_content="this is test doc",
|
38 |
+
metadata={"timestamp":1696743148.474055,"ID":"2000-01-01 15:57:11::664165-test","source":"test"},
|
39 |
+
id="2000-01-01 15:57:11::664165-test"
|
40 |
),
|
41 |
]
|
42 |
|
|
|
135 |
|
136 |
|
137 |
async def persist(self):
|
138 |
+
self.vectorstore.persist()
|
139 |
return await dbh.backupFolder("db")
|
140 |
|
141 |
def _uuid(self,uuid_str: str) -> UUID:
|