Commit 1e8636b5 authored by 林洋洋's avatar 林洋洋

修改删除BUG

parent 57bb0efd
...@@ -158,7 +158,7 @@ public class KnowledgeDocumentController { ...@@ -158,7 +158,7 @@ public class KnowledgeDocumentController {
// new Filter.Value(id) // new Filter.Value(id)
// ); // );
askVectorStoreService.remove(Wrappers.lambdaQuery(AskVectorStore.class) askVectorStoreService.remove(Wrappers.lambdaQuery(AskVectorStore.class)
.apply("metadata->>'documentId' = {0}", id)); // 删除向量存储中对应的文档切片 .apply("(metadata->>'documentId')::bigint = {0}", id)); // 删除向量存储中对应的文档切片
log.info("成功删除文档及其向量数据,文档ID: {}", id); log.info("成功删除文档及其向量数据,文档ID: {}", id);
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment