Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
| import sqlite3 | |
| import os | |
| db_path = os.path.join("chromadb-store", "chroma.sqlite3") # adjust if different | |
| if os.path.exists(db_path): | |
| conn = sqlite3.connect(db_path) | |
| conn.execute("VACUUM;") | |
| conn.close() | |
| print("β Vacuumed Chroma SQLite DB β space reclaimed.") | |
| else: | |
| print("β οΈ No chroma.sqlite3 found β skipping vacuum.") | |