diff --git a/.gitignore b/.gitignore index 2dc53ca3..13207b25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +# User-specific files +logs/*.log +*.faiss +*.pkl + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/hugegraph-llm/src/hugegraph_llm/demo/rag_web_demo.py b/hugegraph-llm/src/hugegraph_llm/demo/rag_web_demo.py index 54bc2a10..6a69f873 100644 --- a/hugegraph-llm/src/hugegraph_llm/demo/rag_web_demo.py +++ b/hugegraph-llm/src/hugegraph_llm/demo/rag_web_demo.py @@ -93,9 +93,9 @@ def build_kg(file, schema, disambiguate_word_sense, commit_to_hugegraph, build_v graph_config_input = [ gr.Textbox(value=settings.graph_ip, label="ip"), gr.Textbox(value=str(settings.graph_port), label="port"), + gr.Textbox(value=settings.graph_name, label="graph"), gr.Textbox(value=settings.graph_user, label="user"), - gr.Textbox(value=settings.graph_pwd, label="pwd"), - gr.Textbox(value=settings.graph_name, label="graph") + gr.Textbox(value=settings.graph_pwd, label="pwd") ] graph_config_button = gr.Button("apply configuration") @@ -149,7 +149,7 @@ def llm_settings(llm_type): gr.Textbox(value=settings.openai_api_key, label="api_key"), gr.Textbox(value=settings.openai_api_base, label="api_base"), gr.Textbox(value=settings.openai_language_model, label="model_name"), - gr.Textbox(value=str(settings.openai_max_tokens), label="max_token"), + gr.Textbox(value=settings.openai_max_tokens, label="max_token"), ] elif llm_type == "qianfan_wenxin": with gr.Row():