File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
backend/onyx/file_processing Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
from onyx .configs .constants import FileOrigin
30
30
from onyx .configs .constants import ONYX_METADATA_FILENAME
31
+ from onyx .configs .llm_configs import get_image_extraction_and_analysis_enabled
31
32
from onyx .file_processing .html_utils import parse_html_page_basic
32
33
from onyx .file_processing .unstructured import get_unstructured_api_key
33
34
from onyx .file_processing .unstructured import unstructured_to_text
@@ -533,7 +534,7 @@ def extract_text_and_images(
533
534
if extension == ".pdf" :
534
535
file .seek (0 )
535
536
text_content , pdf_metadata , images = read_pdf_file (
536
- file , pdf_pass , extract_images = True
537
+ file , pdf_pass , extract_images = get_image_extraction_and_analysis_enabled ()
537
538
)
538
539
return ExtractionResult (
539
540
text_content = text_content , embedded_images = images , metadata = pdf_metadata
You can’t perform that action at this time.
0 commit comments