dosubot[bot] commented on issue #91:
URL: 
https://github.com/apache/incubator-hugegraph-ai/issues/91#issuecomment-2402097259

   <!-- Answer -->
   To ensure the latest settings of the configuration file are reflected in the 
UI after a refresh in `hugegraph_llm.demo.rag_demo.app`, you should use the 
`apply_*_config` functions. These functions update the settings and call 
`settings.update_env()` to apply the changes.
   
   For example, when you click the "apply configuration" button for embeddings, 
it triggers the `apply_embedding_config` function, which updates the settings 
and calls `settings.update_env()`. This ensures that the latest settings are 
applied and reflected in the UI.
   
   Make sure to call the appropriate `apply_*_config` function for each 
configuration section to update the settings and reflect them in the UI 
<sup>[[1]](https://github.com/apache/incubator-hugegraph-ai/blob/main/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/configs_block.py)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to