We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d4b77c + 3576389 commit e52782cCopy full SHA for e52782c
src/backend/bisheng/api/v1/knowledge.py
@@ -283,11 +283,6 @@ def delete_knowledge_file(*,
283
res = vectore_client.col.delete(f"pk in {[p['pk'] for p in pk]}")
284
logger.info(f'act=delete_vector file_id={file_id} res={res}')
285
286
- esvectore_client = decide_vectorstores(collection_name, 'ElasticKeywordsSearch', embeddings)
287
- if isinstance(esvectore_client, ElasticKeywordsSearch):
288
- esvectore_client.client.delete_by_query(index=collection_name,query={"match":{"metadata.file_id":file_id}})
289
- logger.info(f'act=delete_es file_id={file_id} res={res}')
290
-
291
# minio
292
minio_client.MinioClient().delete_minio(str(knowledge_file.id))
293
# elastic
0 commit comments