You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/smart-ai-solutions/ai-samples/kanban/sentiment-analysis.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -520,10 +520,6 @@ If the AI service fails to return a valid response, the Kanban will display an e
520
520
-**Network Issues**: Check connectivity to the AI service endpoint, especially for self-hosted Ollama instances.
521
521
-**Large Prompts**: Processing large text inputs may cause timeouts. Consider reducing the prompt size or optimizing the request for efficiency.
522
522
523
-
## Performance Considerations
524
-
525
-
When handling large text content, ensure the Ollama server has sufficient resources (CPU/GPU) to process requests efficiently. For long-form content or batch operations, consider splitting the input into smaller segments to avoid performance bottlenecks. Test the application with your specific use case to determine optimal performance.
526
-
527
523
## Sample Code
528
524
529
525
A complete working example is available in the [Syncfusion Blazor AI Samples GitHub repository](https://github.com/syncfusion/smart-ai-samples).
Copy file name to clipboardExpand all lines: blazor/smart-ai-solutions/ai-samples/kanban/smart-task-suggestion.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -573,10 +573,6 @@ If the AI service fails to return a valid response, the Kanban will display an e
573
573
-**Network Issues**: Check connectivity to the AI service endpoint, especially for self-hosted Ollama instances.
574
574
-**Large Prompts**: Processing large text inputs may cause timeouts. Consider reducing the prompt size or optimizing the request for efficiency.
575
575
576
-
## Performance Considerations
577
-
578
-
When handling large text content, ensure the Ollama server has sufficient resources (CPU/GPU) to process requests efficiently. For long-form content or batch operations, consider splitting the input into smaller segments to avoid performance bottlenecks. Test the application with your specific use case to determine optimal performance.
579
-
580
576
## Sample Code
581
577
582
578
A complete working example is available in the [Syncfusion Blazor AI Samples GitHub repository](https://github.com/syncfusion/smart-ai-samples).
This section implements the Syncfusion Blazor Rich Text Editor with AI-powered content assistance features such as rephrase, correct grammar, summarize, elaborate, and translate.
233
+
The Syncfusion Blazor Rich Text Editor can integrate AI features to help users create better content. It supports grammar correction, rephrasing for clarity, summarizing long text, elaborating short text, and translating content into different languages. These features work by sending selected text to an AI service and updating the editor with improved content.
234
+
235
+
### How AI Works in Rich Text Editor
236
+
237
+
When a user selects text and chooses an AI option, the editor captures the text and opens a dialog. The dialog shows the original text and a placeholder for AI-generated content. The selected text and chosen action are sent to the AI service, which processes the request and returns the result. Users can then regenerate, copy, or replace the content in the editor.
238
+
239
+
### UI Implementation in Razor (`Home.razor`)
240
+
241
+
The Razor file sets up the Rich Text Editor with custom toolbar items for AI actions. It includes an AI Assistant dropdown for options like Rephrase, Summarize, and Translate, and a dialog to display AI suggestions. Additional UI elements like chips for tone and dropdowns for language selection make the experience interactive.
234
242
235
243
(`Home.razor`)
236
244
@@ -388,6 +396,10 @@ This section implements the Syncfusion Blazor Rich Text Editor with AI-powered c
Select text → Choose AI action → Dialog opens → AI processes → Updated content displayed → User copies or replaces content.
705
+
690
706
## Error Handling and Troubleshooting
691
707
692
708
If the AI service fails to return a valid response, the Rich Text Editor will display an error message ("Oops! Please try again!"). Common issues include:
@@ -696,10 +712,6 @@ If the AI service fails to return a valid response, the Rich Text Editor will di
696
712
-**Network Issues**: Check connectivity to the AI service endpoint, especially for self-hosted Ollama instances.
697
713
-**Large Prompts**: Processing large text inputs may cause timeouts. Consider reducing the prompt size or optimizing the request for efficiency.
698
714
699
-
## Performance Considerations
700
-
701
-
When handling large text content, ensure the Ollama server has sufficient resources (CPU/GPU) to process requests efficiently. For long-form content or batch operations, consider splitting the input into smaller segments to avoid performance bottlenecks. Test the application with your specific use case to determine optimal performance.
702
-
703
715
## Sample Code
704
716
705
717
A complete working example is available in the [Syncfusion Blazor AI Samples GitHub repository](https://github.com/syncfusion/smart-ai-samples).
0 commit comments