LordFarquaad42 commited on
Commit
c796de9
1 Parent(s): 1612f56

fixed bug where create_client loaded client

Browse files
Files changed (1) hide show
  1. add_data.py +1 -1
add_data.py CHANGED
@@ -9,7 +9,7 @@ def create_client():
9
  EMBEDDING_FUNC = embedding_functions.SentenceTransformerEmbeddingFunction(
10
  model_name=MODEL_NAME
11
  )
12
- schemer = client.get_collection(
13
  name=COLLECTION_NAME,
14
  embedding_function=EMBEDDING_FUNC,
15
  )
 
9
  EMBEDDING_FUNC = embedding_functions.SentenceTransformerEmbeddingFunction(
10
  model_name=MODEL_NAME
11
  )
12
+ schemer = client.create_collection(
13
  name=COLLECTION_NAME,
14
  embedding_function=EMBEDDING_FUNC,
15
  )