-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(llm): update config in time after apply changes in UI (#90)
## Brief description 1. Fixed an issue where rag web demo could not update system configuration in time after configuration file changes in file `hugegraph-llm/src/hugegraph_llm/demo/rag_demo/app.py` - graph config, the picture is as follows ![image](https://github.com/user-attachments/assets/64e012f4-01e6-4f8f-af43-b79b80cf96b1) - prompt, the picture is as follows ![image](https://github.com/user-attachments/assets/a6ac0610-fa50-48d2-9990-4987d8d26cfd) - rag with hugegraph, as follows ![image](https://github.com/user-attachments/assets/fefe5a65-99f7-46d0-a7da-3aaa914bb521) To avoid errors that result in an empty return value in file `hugegraph-llm/src/hugegraph_llm/demo/rag_demo/configs_block.py` 2. Adjust the order of functions and classes in file `hugegraph-llm/src/hugegraph_llm/config/config.py` 3. Adjust the format of the prompt to make it easier to read in file `hugegraph-llm/src/hugegraph_llm/config/config_data.py` 4. Add the ability to save prompt to the configuration file after a button click to the kg build section in file `hugegraph-llm/src/hugegraph_llm/demo/rag_demo/vector_graph_block.py`, the position as follows ![image](https://github.com/user-attachments/assets/fb819c13-55c9-4c67-942e-e7ac57509f8f) ## issue fix some of the #91 --------- Co-authored-by: imbajin <[email protected]>
- Loading branch information
1 parent
aff3bbe
commit 8bb13f9
Showing
10 changed files
with
167 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.