Merge pull request #80 from chroma-core/jeff/backup-restore

Clickhouse/Index backup and restore scripts
This commit is contained in:
Jeff Huber
2022-11-18 10:10:32 -08:00
committed by GitHub
6 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
from chroma_client import Chroma
chroma = Chroma()
print(chroma.get_results('yolov3_1_1'))

View File

@@ -89,6 +89,10 @@ if __name__ == "__main__":
end = time.time()
print("Time to get nearest neighbors: " +'{0:.2f}'.format((end - start)) + 's')
task = chroma.calculate_results()
print(task)
print(chroma.get_task_status(task['task_id']))
fetched = chroma.count()
print("Records loaded into the database: ", fetched)
del chroma