- 新增 search_manager.py 搜索管理模块
- FullTextSearch: 全文搜索引擎 (FTS5)
- SemanticSearch: 语义搜索引擎 (sentence-transformers)
- EntityPathDiscovery: 实体关系路径发现 (BFS/DFS)
- KnowledgeGapDetector: 知识缺口检测器
- 新增 performance_manager.py 性能管理模块
- CacheManager: Redis 缓存层 (支持内存回退)
- DatabaseSharding: 数据库分片管理
- TaskQueue: 异步任务队列 (Celery + Redis)
- PerformanceMonitor: 性能监控器
- 更新 schema.sql 添加新表
- search_indexes, embeddings, fts_transcripts
- cache_stats, task_queue, performance_metrics, shard_mappings
- 更新 main.py 添加 API 端点
- 搜索: /search/fulltext, /search/semantic, /entities/{id}/paths
- 性能: /cache/stats, /performance/metrics, /tasks, /health
- 更新 requirements.txt 添加依赖
- sentence-transformers==2.5.1
- redis==5.0.1
- celery==5.3.6
- 创建测试脚本和文档
- test_phase7_task6_8.py
- docs/PHASE7_TASK6_8_SUMMARY.md
Phase 7 全部完成!
63 lines
1.0 KiB
Plaintext
63 lines
1.0 KiB
Plaintext
# InsightFlow Backend Dependencies
|
|
|
|
# Web Framework
|
|
fastapi==0.109.0
|
|
uvicorn[standard]==0.27.0
|
|
python-multipart==0.0.6
|
|
|
|
# HTTP Client
|
|
httpx==0.26.0
|
|
|
|
# Document Processing
|
|
PyPDF2==3.0.1
|
|
python-docx==1.1.0
|
|
|
|
# Data Processing
|
|
numpy==1.26.3
|
|
|
|
# Aliyun SDK
|
|
aliyun-python-sdk-core==2.14.0
|
|
oss2==2.18.5
|
|
|
|
# Utilities
|
|
python-dotenv==1.0.0
|
|
|
|
# Export functionality
|
|
pandas==2.2.0
|
|
openpyxl==3.1.2
|
|
reportlab==4.0.9
|
|
cairosvg==2.7.1
|
|
|
|
# Neo4j Graph Database
|
|
neo4j==5.15.0
|
|
|
|
# API Documentation (Swagger/OpenAPI)
|
|
fastapi-offline-swagger==0.1.0
|
|
|
|
# Phase 7: Workflow Automation
|
|
apscheduler==3.10.4
|
|
|
|
# Phase 7: Multimodal Support
|
|
ffmpeg-python==0.2.0
|
|
pillow==10.2.0
|
|
opencv-python==4.9.0.80
|
|
pytesseract==0.3.10
|
|
|
|
# Phase 7 Task 7: Plugin & Integration
|
|
webdav4==0.9.8
|
|
urllib3==2.2.0
|
|
|
|
# Phase 7: Plugin & Integration
|
|
beautifulsoup4==4.12.3
|
|
webdavclient3==3.14.6
|
|
|
|
# Phase 7 Task 3: Security & Compliance
|
|
cryptography==42.0.0
|
|
|
|
# Phase 7 Task 6: Advanced Search & Discovery
|
|
sentence-transformers==2.5.1
|
|
|
|
# Phase 7 Task 8: Performance Optimization & Scaling
|
|
redis==5.0.1
|
|
celery==5.3.6
|