mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-09 07:42:39 +02:00
Harden vision LLM fallback, folder upload validation, and export memory
This commit is contained in:
parent
e164fe0612
commit
4ccdd80e26
4 changed files with 79 additions and 15 deletions
|
|
@ -80,7 +80,14 @@ class EtlPipelineService:
|
|||
request.filename,
|
||||
)
|
||||
|
||||
return await self._extract_document(request)
|
||||
try:
|
||||
return await self._extract_document(request)
|
||||
except (EtlUnsupportedFileError, EtlServiceUnavailableError):
|
||||
raise EtlUnsupportedFileError(
|
||||
f"Cannot process image {request.filename}: vision LLM "
|
||||
f"{'failed' if self._vision_llm else 'not configured'} and "
|
||||
f"document parser does not support this format"
|
||||
) from None
|
||||
|
||||
async def _extract_document(self, request: EtlRequest) -> EtlResult:
|
||||
from pathlib import PurePosixPath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue