diff --git a/apps/api/src/api/v1/rag.py b/apps/api/src/api/v1/rag.py index 8fb20982..84e68a55 100644 --- a/apps/api/src/api/v1/rag.py +++ b/apps/api/src/api/v1/rag.py @@ -45,7 +45,7 @@ async def trigger_index(background_tasks: BackgroundTasks) -> RagIndexResponse: background_tasks.add_task(_run_index) return RagIndexResponse( status="accepted", - message="索引已排程,背景執行中(nomic-embed-text @ Ollama 188)", + message="索引已排程,背景執行中(nomic-embed-text @ Ollama 111)", ) @@ -76,14 +76,14 @@ async def rag_debug() -> dict: try: async with httpx.AsyncClient(timeout=10.0) as c: r = await c.post( - "http://192.168.0.188:11434/api/embeddings", + "http://192.168.0.111:11434/api/embeddings", json={"model": "nomic-embed-text", "prompt": "test"}, ) ollama_ok = r.status_code == 200 if r.status_code == 200 else f"http_{r.status_code}" except Exception as e: ollama_ok = f"error: {type(e).__name__}: {e}" - return {"cwd": os.getcwd(), "paths": paths_check, "ollama_188_embed": ollama_ok} + return {"cwd": os.getcwd(), "paths": paths_check, "ollama_111_embed": ollama_ok} @router.get("/stats", summary="索引統計")