fix: 修复 Linux 兼容性,添加原生构建依赖,忽略运行时数据
This commit is contained in:
@@ -19,8 +19,8 @@ async def health_check():
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv(env_path, override=False)
|
||||
|
||||
mineru_python = Path(os.getenv("MINERU_PYTHON", "F:/GraphRAGAgent/mineru_mvp/.venv/Scripts/python.exe"))
|
||||
backend_python = Path(__file__).parent.parent / ".venv" / "Scripts" / "python.exe"
|
||||
mineru_python = Path(os.getenv("MINERU_PYTHON", str(Path(__file__).parent.parent.parent / "mineru_mvp" / ".venv" / "bin" / "python")))
|
||||
backend_python = Path(__file__).parent.parent / ".venv" / "bin" / "python"
|
||||
deepseek_key = os.getenv("DEEPSEEK_API_KEY", "")
|
||||
deepseek_url = os.getenv("DEEPSEEK_BASE_URL", "https://api.deepseek.com")
|
||||
|
||||
@@ -134,7 +134,7 @@ async def get_demo_data():
|
||||
|
||||
if not nodes:
|
||||
# Fallback: load from existing graphrag_pipeline output
|
||||
legacy_nodes_path = Path("F:/GraphRAGAgent/graphrag_pipeline/output/kg_nodes.json")
|
||||
legacy_nodes_path = Path(__file__).parent.parent.parent / "backend" / "output" / "kg_nodes.json"
|
||||
legacy_edges_path = Path("F:/GraphRAGAgent/graphrag_pipeline/output/kg_edges.json")
|
||||
if legacy_nodes_path.exists():
|
||||
import json
|
||||
|
||||
Reference in New Issue
Block a user