Spaces:
Sleeping
Sleeping
File size: 216 Bytes
e02136d |
1 2 3 4 5 6 7 8 |
import chromadb
def get_chroma_client():
client = chromadb.PersistentClient(path="./chroma_db")
return client
def create_collection(client, name="pdf_docs"):
return client.get_or_create_collection(name) |