Spaces:
Build error
Build error
File size: 524 Bytes
1f84a9a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# %%
from utils import retrieve_collections, get_chroma_client
from load_model import load_embedding
#retrieve_collections()
client = get_chroma_client()
# %%
client.reset()
# %%
collections = tuple( [collection.name for collection in client.list_collections()] ) ##Keine Embedding function in der Collection angelegt...
ef = load_embedding("hkunlp/instructor-large")
collection="heikostest2"
client.create_collection(collection, embedding_function=ef, metadata={"loaded_docs":[]})
# %%
client.list_collections()
|