Spaces:
Paused
Paused
| # GraphRAG额外依赖 | |
| # 在原有requirements.txt基础上添加这些包 | |
| # 安装命令: pip install -r requirements_graphrag.txt | |
| # LangChain相关(确保最新版本) | |
| langchain>=0.1.0 | |
| langchain-community>=0.0.38 | |
| langchain-core>=0.1.0 | |
| langchain-text-splitters>=0.0.1 # 新版本text splitter | |
| # 图数据库 | |
| neo4j>=5.14.0 | |
| py2neo>=2021.2.3 | |
| # 或者使用更轻量的选项 | |
| networkx>=3.1 | |
| python-louvain>=0.16 # 社区检测 | |
| # 图谱处理 | |
| graspologic>=3.3.0 # 层次化社区检测 | |
| leidenalg>=0.10.0 # 更好的社区检测算法 | |
| # GraphRAG核心(可选,如果使用Microsoft官方实现) | |
| # graphrag>=0.1.0 | |
| # 实体识别增强 | |
| spacy>=3.7.0 | |
| # 下载模型: python -m spacy download zh_core_web_sm | |
| # 下载模型: python -m spacy download en_core_web_sm | |
| # 图可视化(可选) | |
| pyvis>=0.3.2 | |
| plotly>=5.18.0 | |
| # 缓存和性能优化 | |
| diskcache>=5.6.0 | |
| joblib>=1.3.0 | |
| # 异步HTTP请求(用于并发处理) | |
| aiohttp>=3.9.0 | |