Incorrect View Mode Configuration in RagAction::fullEntityCheck and hardcoded default value in Form

Created on 15 January 2025, 15 days ago

Problem:

In the \Drupal\ai_search\Plugin\AiAssistantAction\RagAction::fullEntityCheck() method, the view mode is currently being retrieved from the wrong configuration property. It is currently set as follows:

$view_mode = $rag_database['aggregated_llm'] ?? 'full';
    

However, it should instead be taken from $rag_database['rendered_view_mode'].

Additionally, in the form configuration in \Drupal\ai_search\Plugin\AiAssistantAction\RagAction::ragSegment(), the default value for #default_value is hardcoded to "full" instead of dynamically using the value from rendered_view_mode.

🐛 Bug report
Status

Active

Version

1.0

Component

AI Search

Created by

🇧🇪Belgium ademarco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024