SfAIAssistView - input very laggy

I have a simple blazor server page with a SfAIAssistView, which works well however the input prompt is very laggy on each key press, and it cannot keep up with text as it is typed.


Is there an onprompt_change event that might be firing that I could disable?  

Any advice is appreciated.


My page is little more than a copy of the example code.

<h4>Document Search</h4>

@rendermode InteractiveServer

......

<div class="default-aiassistview">

<SfAIAssistView @ref="sfAIAssistView" ID="aiAssistView" PromptSuggestions="@suggestions" PromptRequested="@PromptRequest" >

        <AssistViews>

            <AssistView>

                <BannerTemplate>

                    <div class="banner-content">

                        <div class="e-icons e-assistview-icon"></div>

                        <h3>Fetch Search Service</h3>

                        <i>To get started, provide input or choose a suggestion.</i>

                    </div>

                </BannerTemplate>

            </AssistView>

        </AssistViews>

        <AssistViewToolbar ItemClicked="ToolbarItemClicked">

            <AssistViewToolbarItem Type="ItemType.Spacer"></AssistViewToolbarItem>


            <AssistViewToolbarItem IconCss="e-icons e-refresh"></AssistViewToolbarItem>

        </AssistViewToolbar>

    </SfAIAssistView>

</div>


3 Replies

TW Tracey West February 26, 2025 01:47 AM UTC

This issue is actually happening on the SyncFusion Blazor demo page.


https://blazor.syncfusion.com/demos/ai-assistview/default-functionalities?_gl=1*owik91*_ga*MTg0MzMxODc0Mi4xNzM5ODIyNzc5*_ga_41J4HFMX1J*MTc0MDUzNDExMS4xMi4wLjE3NDA1MzQxMTIuMC4wLjA.


This is a great control, Is there any way to avoid the prompt input lag?



IS Indrajith Srinivasan Syncfusion Team February 27, 2025 07:14 AM UTC

Hi Tracey,


Sorry for the inconvenience caused,


We have checked the reported issue, and we confirmed that “Resolve the flickering Issue due to latency when typing quickly in the AI AssistView Component” as a bug from our end. The fix will be included in our upcoming weekly patch release scheduled for 11th March 2025.


You can track the status of the bug report through this feedback link:

https://www.syncfusion.com/feedback/65791
 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Please get back to us if you need any further assistance.


Regards,

Indrajith



IS Indrajith Srinivasan Syncfusion Team March 12, 2025 05:46 AM UTC

Tracey,


Thanks for your patience,


We have fixed the reported issue, “Resolve the flickering Issue due to latency when typing quickly in the AI AssistView Component” and included the fix in our weekly patch release version v28.2.11. Please upgrade our packages to the latest version to resolve the reported issue at your end.


Sample - Link


Release notes: https://blazor.syncfusion.com/documentation/release-notes/28.2.11?type=all#ai-assistview


Root cause analysis (RCA):

Previously, the change and input callbacks will be fired when the value updates take place when typing in the textarea, which raised the latency issue when typing fast. We have now resolved the reported issue, by updating the value only in the input event and which returns the updated value resolving the latency issue now with the AI Assistview component.


Regards,

Indrajith


Loader.
Up arrow icon