Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions rag/app/resume.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
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
Expand Down Expand Up @@ -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.")
Comment thread
wangq8 marked this conversation as resolved.

try:
callback(0.1, "Starting resume parsing...")

Expand Down
Loading