anubhav77 commited on
Commit
89eca8d
·
1 Parent(s): bc7d2c2
Files changed (1) hide show
  1. 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
- await self.vectorstore.persist()
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: