File size: 604 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
25
26
27
28
29
# %%
# %%
import os
import pathlib

from load_model import load_embedding
from utils import get_chroma_client
from load_vectors import load_from_web, create_and_add, load_and_split

collection="axaterms"
client = get_chroma_client()
# Load collection to get metadata
loaded_collection = client.get_collection(collection)

# %%
model_name = loaded_collection.metadata['model_name']

# %%
print( loaded_collection.json() )


# %%
client.get_collection(collection).json()   #add documents destroys the metadata... maybe :)
# %%

#loaded_collection.modify(metadata={"Test":99})

# %%
loaded_collection.json()