opea-project / GenAIExamples

Generative AI Examples is a collection of GenAI examples such as ChatQnA, Copilot, which illustrate the pipeline capabilities of the Open Platform for Enterprise AI (OPEA) project.
https://opea.dev
Apache License 2.0
278 stars 194 forks source link

[ChatQnA Conversational UI] backend URL specified during image build process #493

Closed Ruoyu-y closed 3 months ago

Ruoyu-y commented 3 months ago

According to the readme file, the urls of backend service and data preparation service need to added as build args while building the conversational UI image. However, if the urls get changed during the runtime, it is hard to update back to the UI service. Also, in the case that the UI is deployed simultaneously with the workload or it is pre-deployed before the services, it is hard for user to specify these args as they might be everchanging.

We would like to suggest that the urls get consumed through environment variables during runtime, instead of build args during image creation.

Ruoyu-y commented 3 months ago

@zhlsunshine @irisdingbj Add more comments if you have.

Ruoyu-y commented 3 months ago

@jaswanth8888 Any comments on this?

Feelas commented 3 months ago

I filled a similar issue for CodeGen React UI https://github.com/opea-project/GenAIExamples/issues/505

Seems to be a common theme in all OPEA React UI implementations.

jaswanth8888 commented 3 months ago

Hi @Ruoyu-y I am working on the same and will raise PR for all the react UI implementations .

Ruoyu-y commented 3 months ago

Hi @Ruoyu-y I am working on the same and will raise PR for all the react UI implementations .

Great. Thanks. Please also help take a look on the following issues related to UI implementation. #517 #518

jaswanth8888 commented 3 months ago

@Ruoyu-y enabled chat qna to pick env variables during runtime with PR