You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "returnToInnocence (via GitHub)" <gi...@apache.org> on 2024/10/09 11:43:32 UTC

[I] [Bug] In rag_web_demo. Unable to get the latest Settings of the configuration file after ui refresh [incubator-hugegraph-ai]

returnToInnocence opened a new issue, #91:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/91

   ### Bug Type (问题类型)
   
   rest-api (结果不合预期)
   
   ### Before submit
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-hugegraph-ai/issues) and found no similar issues.
   
   ### Environment (环境信息)
   
   - `hugegraph_llm.demo.rag_demo.app`
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   After the process is started (the process is still running), you can refresh the ui after modifying the information in the configuration file locally to display the locally updated parameter information in the configuration file
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
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: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] In rag_web_demo. Unable to get the latest Settings of the configuration file after ui refresh [incubator-hugegraph-ai]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
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: issues-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org