Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 462 Bytes
7217024 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import chromadb
# Path to your local ChromaDB store
CHROMA_PATH = "chromadb-store"
# Initialize Chroma client
client = chromadb.PersistentClient(path=CHROMA_PATH)
# List all available collections
collections = client.list_collections()
if not collections:
print(f"⚠️ No collections found in {CHROMA_PATH}")
else:
print(f"📚 Collections in {CHROMA_PATH}:")
for c in sorted(collections, key = lambda x: x.name):
print(f" - {c.name}")
|