youtu-graphrag icon indicating copy to clipboard operation
youtu-graphrag copied to clipboard

docker 部署,demo问题报错

Open liubaolin opened this issue 3 months ago • 4 comments

[2025-09-18 11:11:17] WARNING config_loader:224 - Corpus path not found for hotpot: data/hotpotqa/hotpotqa_corpus.json [2025-09-18 11:11:17] WARNING config_loader:224 - Corpus path not found for 2wiki: data/2wiki/2wikimultihopqa_corpus.json [2025-09-18 11:11:17] WARNING config_loader:224 - Corpus path not found for musique: data/musique/musique_corpus.json [2025-09-18 11:11:17] WARNING config_loader:224 - Corpus path not found for graphrag-bench: data/graphrag-bench-reformat/bench_corpus.json [2025-09-18 11:11:17] WARNING config_loader:224 - Corpus path not found for anony_chs: data/anony_chs/final_chunk_corpus.json [2025-09-18 11:11:17] WARNING config_loader:226 - Schema path not found for anony_chs: schemas/anony_chs.json [2025-09-18 11:11:17] WARNING config_loader:224 - Corpus path not found for anony_eng: data/anony_eng/final_chunk_corpus.json [2025-09-18 11:11:17] WARNING config_loader:226 - Schema path not found for anony_eng: schemas/anony_eng.json [2025-09-18 11:11:17] INFO config_loader:171 - Configuration loaded successfully from config/base_config.yaml [2025-09-18 11:11:25] INFO enhanced_kt_retriever:71 - Using device: cpu [2025-09-18 11:11:34] INFO faiss_filter:46 - DualFAISSRetriever using device: cpu [2025-09-18 11:11:34] INFO enhanced_kt_retriever:118 - Loaded 6 chunks from output/chunks/demo.txt [2025-09-18 11:11:34] INFO enhanced_kt_retriever:501 - Cache file not found: retriever/faiss_cache_new/demo/node_embedding_cache.pt [2025-09-18 11:11:34] WARNING enhanced_kt_retriever:243 - Cache file not found: retriever/faiss_cache_new/demo/node_text_cache.pkl [2025-09-18 11:11:34] INFO enhanced_kt_retriever:185 - Node texts precomputed for 0 nodes in 0.00 seconds [2025-09-18 11:11:34] INFO enhanced_kt_retriever:2259 - Cache file not found: retriever/faiss_cache_new/demo/node_text_index.pkl [2025-09-18 11:11:34] INFO enhanced_kt_retriever:2161 - Building optimized node text index for keyword search... [2025-09-18 11:11:34] INFO enhanced_kt_retriever:2194 - Time taken to build node text index: 0.00012183189392089844 seconds [2025-09-18 11:11:34] WARNING enhanced_kt_retriever:2203 - No node text index to save! [2025-09-18 11:11:34] INFO enhanced_kt_retriever:2339 - Precomputing chunk embeddings for direct chunk retrieval... [2025-09-18 11:11:34] INFO enhanced_kt_retriever:2562 - Loaded chunk embedding cache with 6 entries from retriever/faiss_cache_new/demo/chunk_embedding_cache.pt (file size: 11860 bytes) [2025-09-18 11:11:34] INFO enhanced_kt_retriever:2341 - Successfully loaded chunk embeddings from disk cache [2025-09-18 11:11:34] INFO faiss_filter:856 - Building FAISS indices and embeddings... INFO: 172.17.0.1:42092 - "POST /api/ask-question HTTP/1.1" 500 Internal Server Error

liubaolin avatar Sep 18 '25 11:09 liubaolin

Image

172.17.0.1 是 Docker 的默认网桥 IP 地址 42092 是一个随机分配的端口,可能是代理或端口映射造成的

liubaolin avatar Sep 18 '25 11:09 liubaolin

建议先本地./start.sh跑起来,再打包docker

samqin123 avatar Sep 19 '25 03:09 samqin123

哈哈,感觉这个问题是当前代码Docker部署和Conda 部署互斥。 Docker 可以按实际情况写死,保证能运行。 不部署应用,本地 conda环境感觉最舒服。方便调试~

Dimonye0531 avatar Sep 19 '25 08:09 Dimonye0531

我也碰到这个问题,官方的有没答案哦

tomzhuang avatar Sep 24 '25 14:09 tomzhuang