修改rag,实现混合检索
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m42s

This commit is contained in:
2026-05-04 04:28:32 +08:00
parent d0590240f9
commit 82dde7113e
15 changed files with 536 additions and 65 deletions

View File

@@ -0,0 +1,30 @@
#!/usr/bin/env python3
"""
简单删除 Qdrant 集合
"""
import sys
import os
project_root = os.path.join(os.path.dirname(__file__), "..", "..")
sys.path.insert(0, os.path.join(project_root, "backend"))
from rag_core.client import create_qdrant_client
def delete_collection():
print("="*70)
print("删除 rag_documents 集合...")
print("="*70)
client = create_qdrant_client()
try:
client.delete_collection("rag_documents")
print("✅ 删除成功")
except Exception as e:
print(f"⚠️ 删除失败: {e}")
if __name__ == "__main__":
delete_collection()