mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-13 08:28:22 +08:00
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:
@@ -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...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user