OpenSource Resume is supported only with Elasticsearch. (#14233)

### What problem does this PR solve?

OpenSource Resume is supported only with Elasticsearch.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Wang Qi
2026-04-21 10:05:47 +08:00
committed by GitHub
parent f269ee9739
commit 8aab158942

View File

@@ -39,6 +39,8 @@ from io import BytesIO
from typing import Optional
import numpy as np
from common import settings
# tiktoken for long random string filtering (ref: SmartResume should_remove strategy)
try:
import tiktoken
@@ -2485,6 +2487,9 @@ def chunk(filename, binary, tenant_id, from_page=0, to_page=100000,
if callback is None:
def callback(prog, msg): return None
if settings.DOC_ENGINE.lower() != "elasticsearch":
raise Exception("Resume is supported only with Elasticsearch.")
try:
callback(0.1, "Starting resume parsing...")