Skip to content

Commit 5c9c086

Browse files
committed
Update
1 parent bac5566 commit 5c9c086

File tree

1 file changed

+10
-3
lines changed
  • deploy_ai_search_indexes/src/deploy_ai_search_indexes

1 file changed

+10
-3
lines changed

deploy_ai_search_indexes/src/deploy_ai_search_indexes/ai_search.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def get_semantic_chunker_skill(
301301

302302
semantic_text_chunker_skill_inputs = [
303303
InputFieldMappingEntry(
304-
name="content", source="/document/layout/merged_content"
304+
name="content", source="/document/layout_merged_content"
305305
)
306306
]
307307

@@ -486,7 +486,6 @@ def get_layout_and_figure_merger_skill(self, chunk_by_page=False) -> WebApiSkill
486486
batch_size = 1
487487
degree_of_parallelism = 8
488488

489-
output = [OutputFieldMappingEntry(name="content", target_name="merged_content")]
490489
if chunk_by_page:
491490
merger_context = "/document/page_wise_layout/*"
492491
inputs = [
@@ -498,15 +497,23 @@ def get_layout_and_figure_merger_skill(self, chunk_by_page=False) -> WebApiSkill
498497
source="/document/page_wise_layout/*/figures/*/updated_figure",
499498
),
500499
]
500+
output = [
501+
OutputFieldMappingEntry(name="content", target_name="merged_content")
502+
]
501503
else:
502-
merger_context = "/document/layout"
504+
merger_context = "/document"
503505

504506
inputs = [
505507
InputFieldMappingEntry(name="layout", source="/document/layout"),
506508
InputFieldMappingEntry(
507509
name="figures", source="/document/layout/figures/*/updated_figure"
508510
),
509511
]
512+
output = [
513+
OutputFieldMappingEntry(
514+
name="content", target_name="layout_merged_content"
515+
)
516+
]
510517

511518
figure_analysis_skill = WebApiSkill(
512519
name="Layout and Figure Merger Skill",

0 commit comments

Comments
 (0)