#!/usr/bin/env python3 """测试RAG集成""" import sys sys.path.insert(0, '/home/xia-lab/wutx/00test/bbav5/apps/web/vue3copy0417') from rag_integration import RAG_AVAILABLE, get_vector_store, get_orchestrator print("=" * 80) print("RAG集成测试") print("=" * 80) print(f"\nRAG可用: {RAG_AVAILABLE}") try: print("\n测试向量存储...") store = get_vector_store() print(f"✅ 向量存储加载成功") print(f" Chunks数量: {len(store._chunks)}") except Exception as e: print(f"❌ 向量存储加载失败: {e}") try: print("\n测试编排器...") orchestrator = get_orchestrator() print(f"✅ 编排器初始化成功") except Exception as e: print(f"❌ 编排器初始化失败: {e}") print("\n" + "=" * 80) print("测试完成") print("=" * 80)