fix: restore embedded wiki images and optimize vector sync
This commit is contained in:
1 parent
043b0900d5
commit
4b86106a24
23 files changed
+609
-136
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import Any
|
||||
from uuid import uuid4
|
||||
|
||||
@@ -14,6 +15,7 @@ from deerflow.integrations.weknora.local_index.retrieval import is_fully_vectori
|
||||
from deerflow.integrations.weknora.local_index.search import WikiIndexError
|
||||
|
||||
router = APIRouter(prefix="/api/llmwiki", tags=["llmwiki-index"])
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class WikiVectorSearchRequest(BaseModel):
|
||||
@@ -181,6 +183,7 @@ async def _run_sync(app, mapping_ids: list[str], force: bool) -> None:
|
||||
try:
|
||||
await service.sync_mapping(mapping, force=force)
|
||||
except Exception:
|
||||
logger.exception("Manual Wiki vectorization failed mapping_id=%s", mapping.get("id"))
|
||||
continue
|
||||
|
||||
|
||||
@@ -191,6 +194,7 @@ async def _run_one_sync(app, mapping: dict[str, Any], *, force: bool) -> None:
|
||||
try:
|
||||
await service.sync_mapping(mapping, force=force)
|
||||
except Exception:
|
||||
logger.exception("Manual Wiki vectorization failed mapping_id=%s", mapping.get("id"))
|
||||
return
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user