epam / ai-dial-chat

A default UI for AI DIAL
https://chat.lab.epam.com
Apache License 2.0
55 stars 23 forks source link

UI Freezes if custom app response is not received within ~20s #951

Closed sergeev0 closed 4 days ago

sergeev0 commented 6 months ago

EPAM AI DIAL chat version

0.5.3

What happened?

Issue Description UI Freezes if custom app response is not received within ~20s

Steps to Reproduce Create a custom DIAL app that takes around 20s to send response to DIAL.

Confidential information

IlyaBondar commented 6 months ago

@sergeev0 , could you provide more details, please. Which model/application, what the message/question/content(in ideal case you can export your conversation and attach to this issue) and what does "UI Freezes" look like?

During answer generation we block any options on conversation bar and prompt bar and it's expected. Also we have long timeout. But you still have "stop generation" button: version 0.6: image version 0.5: image

souhail-bougrine commented 5 months ago

@IlyaBondar I have reported this issue to @sergeev0 originally. The "freeze" happens when a custom app developed using the ai dial sdk (very similar to the example echo app) doesn't send a response within 25~30s. The chat is stuck in the text generation status (the icon blinking) and is no longer responsive. the "stop generation" button does not work and the only way to get out of the situation is to refresh the page and edit the user message and resend it.

photonn commented 1 week ago

Hi! same situation here. We have a custom RAG application developed with ai-dial-sdk and we think the limit is around 30 secs. Which looks like some kind of default timeout somewhere on the code.

In our case, we are 100% sure that the application microservice is making back a POST to chat when it finish, is just that if the request is longer than 30 secs, it gets ignored and the UI freeze. Our chat version is 0.8.2

photonn commented 5 days ago

found issue in a default config in azure appgw:

https://learn.microsoft.com/en-us/azure/application-gateway/ingress-controller-annotations?source=recommendations#request-timeout

You can close this bug.

sdryapko commented 4 days ago

Closing based on comment above. Issue is not related to dial-chat.