HKUDS/DeepTutor · error · HTTPException
result.error or "Folder is not linkable."
Error message
result.error or "Folder is not linkable."
What it means
Error "result.error or "Folder is not linkable."" thrown in HKUDS/DeepTutor.
Source
Thrown at deeptutor/api/routers/knowledge.py:1823
"""Mount an existing engine index as a read-only ``linked`` knowledge base.
Re-probes server-side (never trusts the client's verdict), then registers a
pointer to the folder. Retrieval reads the index in place — no copy, no
re-index. Embedding-mismatch warnings do not block the link (the user may
switch embedding models later); a missing/invalid index does.
"""
name = (payload.name or "").strip()
folder_path = (payload.folder_path or "").strip()
if not name or not folder_path:
raise HTTPException(status_code=400, detail="Both name and folder_path are required.")
try:
folder = assert_path_allowed(folder_path)
except ValueError as e:
raise HTTPException(status_code=400, detail=str(e))
result = probe_linked_folder(str(folder), payload.rag_provider)
if not result.ok:
raise HTTPException(status_code=400, detail=result.error or "Folder is not linkable.")
stats = {
"embedding_model": result.embedding.index_model,
"doc_count": result.doc_count,
}
try:
manager = get_kb_manager()
entry = manager.register_linked_kb(
name,
str(folder),
result.provider,
stats=stats,
)
except ValueError as e:
raise HTTPException(status_code=400, detail=str(e))
except HTTPException:
raise
except Exception as e:View on GitHub (pinned to 3e82f13042)
When it happens
Trigger: Thrown at deeptutor/api/routers/knowledge.py:1823 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of HKUDS/DeepTutor@3e82f13042 (2026-08-27).
Data as JSON: /api/errors/71929462cc8c4b4d.
Report an issue: GitHub.