Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we implement seamlessly in current codebase ? #390

Open
AkashDoke opened this issue Dec 17, 2024 · 0 comments
Open

How can we implement seamlessly in current codebase ? #390

AkashDoke opened this issue Dec 17, 2024 · 0 comments

Comments

@AkashDoke
Copy link

AkashDoke commented Dec 17, 2024

Issue Description:

First of all, thank you for providing such great insights and helping us understand the usage of Azure AI services. We’ve based our product on the references provided by your app and are progressing well with the implementation.

As we move forward, we have a new requirement to integrate streaming functionality into our application. From what we understand, Blazor components do not offer direct support for streaming, which makes it challenging to achieve the desired streaming approach using the native Blazor features. To address this, we have implemented a custom solution using JavaScript Interop functions provided by Blazor WebAssembly.

While this approach has allowed us to implement streaming, we are encountering performance issues. After a few rounds of questions and answers, the app starts consuming more memory, becomes slower, and occasionally gets stuck. Specifically, our current streaming implementation involves creating a DOM element to write answers, filling the actual questionAndAnswer object, and then rendering the answer component.

Questions:

  • Could you advise on how we can achieve seamless streaming in our current codebase without performance issues or lag?
  • Are there any best practices or considerations we might be missing that would help us implement smooth streaming functionality?

Your guidance will be highly appreciated as we look to resolve these issues and enhance the performance of our application.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant