Files

13 lines
439 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""M2: 删除损坏的 kb_3 collection(服务器已停,无并发)"""
import sys
sys.path.insert(0, r'C:\Users\xinmiclaw\Desktop\雅文内容创造工作台\server')
from app.rag import store
print("删除前 count:", store.count(3))
store.reset_kb(3)
print("已删除 kb_3 collection")
try:
print("删除后 count:", store.count(3))
except Exception as e:
print("删除后 count 异常(应为重建空 collection):", e)