From 36136e4c15c0abab7abd8de989671127cd67ff28 Mon Sep 17 00:00:00 2001 From: LXW <1264174498@qq.com> Date: Fri, 15 Mar 2024 12:47:11 +0800 Subject: [PATCH] (improvement)(Chat) Move python module from Chat To Headless (#823) Co-authored-by: jolunoluo --- assembly/bin/supersonic-build.bat | 2 +- assembly/bin/supersonic-build.sh | 2 +- {chat => headless}/python/config/config_parse.py | 0 {chat => headless}/python/config/run_config.ini | 0 {chat => headless}/python/few_shot_example/s2sql_exemplar.py | 0 .../python/few_shot_example/s2sql_exemplar3_transformed.json | 0 {chat => headless}/python/instances/chromadb_instance.py | 0 {chat => headless}/python/instances/llm_instance.py | 0 {chat => headless}/python/instances/logging_instance.py | 0 {chat => headless}/python/instances/text2vec_instance.py | 0 {chat => headless}/python/requirements.txt | 0 .../python/services/plugin_call/prompt_construct.py | 0 {chat => headless}/python/services/plugin_call/run.py | 0 {chat => headless}/python/services/query_retrieval/retriever.py | 0 {chat => headless}/python/services/query_retrieval/run.py | 0 {chat => headless}/python/services/s2sql/auto_cot.py | 0 {chat => headless}/python/services/s2sql/auto_cot_run.py | 0 {chat => headless}/python/services/s2sql/constructor.py | 0 {chat => headless}/python/services/s2sql/examples_reload_run.py | 0 {chat => headless}/python/services/s2sql/output_parser.py | 0 {chat => headless}/python/services/s2sql/run.py | 0 {chat => headless}/python/services/s2sql/sql_agent.py | 0 .../python/services_router/plugin_call_service.py | 0 .../python/services_router/preset_query_service.py | 0 {chat => headless}/python/services_router/query2sql_service.py | 0 {chat => headless}/python/services_router/retriever_service.py | 0 .../python/services_router/solved_query_service.py | 0 {chat => headless}/python/supersonic_pyllm.py | 0 {chat => headless}/python/utils/chromadb_utils.py | 0 {chat => headless}/python/utils/text2vec.py | 0 30 files changed, 2 insertions(+), 2 deletions(-) rename {chat => headless}/python/config/config_parse.py (100%) rename {chat => headless}/python/config/run_config.ini (100%) rename {chat => headless}/python/few_shot_example/s2sql_exemplar.py (100%) rename {chat => headless}/python/few_shot_example/s2sql_exemplar3_transformed.json (100%) rename {chat => headless}/python/instances/chromadb_instance.py (100%) rename {chat => headless}/python/instances/llm_instance.py (100%) rename {chat => headless}/python/instances/logging_instance.py (100%) rename {chat => headless}/python/instances/text2vec_instance.py (100%) rename {chat => headless}/python/requirements.txt (100%) rename {chat => headless}/python/services/plugin_call/prompt_construct.py (100%) rename {chat => headless}/python/services/plugin_call/run.py (100%) rename {chat => headless}/python/services/query_retrieval/retriever.py (100%) rename {chat => headless}/python/services/query_retrieval/run.py (100%) rename {chat => headless}/python/services/s2sql/auto_cot.py (100%) rename {chat => headless}/python/services/s2sql/auto_cot_run.py (100%) rename {chat => headless}/python/services/s2sql/constructor.py (100%) rename {chat => headless}/python/services/s2sql/examples_reload_run.py (100%) rename {chat => headless}/python/services/s2sql/output_parser.py (100%) rename {chat => headless}/python/services/s2sql/run.py (100%) rename {chat => headless}/python/services/s2sql/sql_agent.py (100%) rename {chat => headless}/python/services_router/plugin_call_service.py (100%) rename {chat => headless}/python/services_router/preset_query_service.py (100%) rename {chat => headless}/python/services_router/query2sql_service.py (100%) rename {chat => headless}/python/services_router/retriever_service.py (100%) rename {chat => headless}/python/services_router/solved_query_service.py (100%) rename {chat => headless}/python/supersonic_pyllm.py (100%) rename {chat => headless}/python/utils/chromadb_utils.py (100%) rename {chat => headless}/python/utils/text2vec.py (100%) diff --git a/assembly/bin/supersonic-build.bat b/assembly/bin/supersonic-build.bat index 204accba6..1f64e5344 100644 --- a/assembly/bin/supersonic-build.bat +++ b/assembly/bin/supersonic-build.bat @@ -40,7 +40,7 @@ move webapp ..\..\launchers\standalone\target\classes rem 5. build backend python modules if "%service%"=="pyllm" ( echo "start installing python modules with pip: ${pip_path}" - set requirementPath="%baseDir%/../chat/python/requirements.txt" + set requirementPath="%baseDir%/../headless/python/requirements.txt" %pip_path% install -r %requirementPath% echo "install python modules success" ) diff --git a/assembly/bin/supersonic-build.sh b/assembly/bin/supersonic-build.sh index 70bfb0d92..2561afd21 100755 --- a/assembly/bin/supersonic-build.sh +++ b/assembly/bin/supersonic-build.sh @@ -46,7 +46,7 @@ rm -fr ${buildDir}/webapp #5. build backend python modules if [ "$service" == "pyllm" ]; then echo "start installing python modules with pip: ${pip_path}" - requirementPath=$baseDir/../chat/python/requirements.txt + requirementPath=$baseDir/../headless/python/requirements.txt ${pip_path} install -r ${requirementPath} echo "install python modules success" fi diff --git a/chat/python/config/config_parse.py b/headless/python/config/config_parse.py similarity index 100% rename from chat/python/config/config_parse.py rename to headless/python/config/config_parse.py diff --git a/chat/python/config/run_config.ini b/headless/python/config/run_config.ini similarity index 100% rename from chat/python/config/run_config.ini rename to headless/python/config/run_config.ini diff --git a/chat/python/few_shot_example/s2sql_exemplar.py b/headless/python/few_shot_example/s2sql_exemplar.py similarity index 100% rename from chat/python/few_shot_example/s2sql_exemplar.py rename to headless/python/few_shot_example/s2sql_exemplar.py diff --git a/chat/python/few_shot_example/s2sql_exemplar3_transformed.json b/headless/python/few_shot_example/s2sql_exemplar3_transformed.json similarity index 100% rename from chat/python/few_shot_example/s2sql_exemplar3_transformed.json rename to headless/python/few_shot_example/s2sql_exemplar3_transformed.json diff --git a/chat/python/instances/chromadb_instance.py b/headless/python/instances/chromadb_instance.py similarity index 100% rename from chat/python/instances/chromadb_instance.py rename to headless/python/instances/chromadb_instance.py diff --git a/chat/python/instances/llm_instance.py b/headless/python/instances/llm_instance.py similarity index 100% rename from chat/python/instances/llm_instance.py rename to headless/python/instances/llm_instance.py diff --git a/chat/python/instances/logging_instance.py b/headless/python/instances/logging_instance.py similarity index 100% rename from chat/python/instances/logging_instance.py rename to headless/python/instances/logging_instance.py diff --git a/chat/python/instances/text2vec_instance.py b/headless/python/instances/text2vec_instance.py similarity index 100% rename from chat/python/instances/text2vec_instance.py rename to headless/python/instances/text2vec_instance.py diff --git a/chat/python/requirements.txt b/headless/python/requirements.txt similarity index 100% rename from chat/python/requirements.txt rename to headless/python/requirements.txt diff --git a/chat/python/services/plugin_call/prompt_construct.py b/headless/python/services/plugin_call/prompt_construct.py similarity index 100% rename from chat/python/services/plugin_call/prompt_construct.py rename to headless/python/services/plugin_call/prompt_construct.py diff --git a/chat/python/services/plugin_call/run.py b/headless/python/services/plugin_call/run.py similarity index 100% rename from chat/python/services/plugin_call/run.py rename to headless/python/services/plugin_call/run.py diff --git a/chat/python/services/query_retrieval/retriever.py b/headless/python/services/query_retrieval/retriever.py similarity index 100% rename from chat/python/services/query_retrieval/retriever.py rename to headless/python/services/query_retrieval/retriever.py diff --git a/chat/python/services/query_retrieval/run.py b/headless/python/services/query_retrieval/run.py similarity index 100% rename from chat/python/services/query_retrieval/run.py rename to headless/python/services/query_retrieval/run.py diff --git a/chat/python/services/s2sql/auto_cot.py b/headless/python/services/s2sql/auto_cot.py similarity index 100% rename from chat/python/services/s2sql/auto_cot.py rename to headless/python/services/s2sql/auto_cot.py diff --git a/chat/python/services/s2sql/auto_cot_run.py b/headless/python/services/s2sql/auto_cot_run.py similarity index 100% rename from chat/python/services/s2sql/auto_cot_run.py rename to headless/python/services/s2sql/auto_cot_run.py diff --git a/chat/python/services/s2sql/constructor.py b/headless/python/services/s2sql/constructor.py similarity index 100% rename from chat/python/services/s2sql/constructor.py rename to headless/python/services/s2sql/constructor.py diff --git a/chat/python/services/s2sql/examples_reload_run.py b/headless/python/services/s2sql/examples_reload_run.py similarity index 100% rename from chat/python/services/s2sql/examples_reload_run.py rename to headless/python/services/s2sql/examples_reload_run.py diff --git a/chat/python/services/s2sql/output_parser.py b/headless/python/services/s2sql/output_parser.py similarity index 100% rename from chat/python/services/s2sql/output_parser.py rename to headless/python/services/s2sql/output_parser.py diff --git a/chat/python/services/s2sql/run.py b/headless/python/services/s2sql/run.py similarity index 100% rename from chat/python/services/s2sql/run.py rename to headless/python/services/s2sql/run.py diff --git a/chat/python/services/s2sql/sql_agent.py b/headless/python/services/s2sql/sql_agent.py similarity index 100% rename from chat/python/services/s2sql/sql_agent.py rename to headless/python/services/s2sql/sql_agent.py diff --git a/chat/python/services_router/plugin_call_service.py b/headless/python/services_router/plugin_call_service.py similarity index 100% rename from chat/python/services_router/plugin_call_service.py rename to headless/python/services_router/plugin_call_service.py diff --git a/chat/python/services_router/preset_query_service.py b/headless/python/services_router/preset_query_service.py similarity index 100% rename from chat/python/services_router/preset_query_service.py rename to headless/python/services_router/preset_query_service.py diff --git a/chat/python/services_router/query2sql_service.py b/headless/python/services_router/query2sql_service.py similarity index 100% rename from chat/python/services_router/query2sql_service.py rename to headless/python/services_router/query2sql_service.py diff --git a/chat/python/services_router/retriever_service.py b/headless/python/services_router/retriever_service.py similarity index 100% rename from chat/python/services_router/retriever_service.py rename to headless/python/services_router/retriever_service.py diff --git a/chat/python/services_router/solved_query_service.py b/headless/python/services_router/solved_query_service.py similarity index 100% rename from chat/python/services_router/solved_query_service.py rename to headless/python/services_router/solved_query_service.py diff --git a/chat/python/supersonic_pyllm.py b/headless/python/supersonic_pyllm.py similarity index 100% rename from chat/python/supersonic_pyllm.py rename to headless/python/supersonic_pyllm.py diff --git a/chat/python/utils/chromadb_utils.py b/headless/python/utils/chromadb_utils.py similarity index 100% rename from chat/python/utils/chromadb_utils.py rename to headless/python/utils/chromadb_utils.py diff --git a/chat/python/utils/text2vec.py b/headless/python/utils/text2vec.py similarity index 100% rename from chat/python/utils/text2vec.py rename to headless/python/utils/text2vec.py