Add print
Browse files- .gitignore +2 -0
- main.py +4 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
indexer_local.py
|
2 |
+
retrival_local.py
|
main.py
CHANGED
@@ -154,6 +154,10 @@ def update(collection_id:str , update:UpdateEmbedding) -> None:
|
|
154 |
@app.post(api_base+"/collections/{collection_id}/upsert")
|
155 |
def upsert(collection_id:str, upsert: AddEmbedding):
|
156 |
print("Received upsert request")
|
|
|
|
|
|
|
|
|
157 |
return bkend._upsert(collection_id=_uuid(collection_id),embeddings=upsert.embeddings,metadatas=upsert.metadatas,documents=upsert.documents,ids=upsert.ids,increment_index=upsert.increment_index)
|
158 |
|
159 |
@app.post(api_base+"/collections/{collection_id}/get")
|
|
|
154 |
@app.post(api_base+"/collections/{collection_id}/upsert")
|
155 |
def upsert(collection_id:str, upsert: AddEmbedding):
|
156 |
print("Received upsert request")
|
157 |
+
try:
|
158 |
+
print("Received upsert request",upsert)
|
159 |
+
except Exception:
|
160 |
+
pass
|
161 |
return bkend._upsert(collection_id=_uuid(collection_id),embeddings=upsert.embeddings,metadatas=upsert.metadatas,documents=upsert.documents,ids=upsert.ids,increment_index=upsert.increment_index)
|
162 |
|
163 |
@app.post(api_base+"/collections/{collection_id}/get")
|