This commit is contained in:
hsafaei
2025-11-13 14:56:16 +03:30
parent 1a0485dd72
commit 02b359c66b
22 changed files with 43 additions and 34 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ password=os.getenv('HOST_160_PASS')
# host=os.getenv('HOST_113')
# password=os.getenv('HOST_113_PASS')
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
+1 -1
View File
@@ -336,7 +336,7 @@ password=os.getenv('HOST_113_PASS')
print(host)
# print(password)
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
+1 -1
View File
@@ -718,7 +718,7 @@ if __name__ == "__main__":
print('.... codes_import_from_excel ......', host)
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
+1 -1
View File
@@ -835,7 +835,7 @@ if __name__ == "__main__":
print( "---------------->>>>>>>>>>>>>>>", host )
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
# extract_codes_diff_llm_tanghih( elastic, "mj_qa_section", "diff_llm_tanghih_2", body={})
+1 -1
View File
@@ -373,7 +373,7 @@ def extract_domain_words(
# host=os.getenv('HOST_113')
# password=os.getenv('HOST_113_PASS')
# path_base_map = "G:/Project2/gateway2_main/repo/_other/"
# path_base_map = "G:/Project2/gateway_php/repo/_other/"
# elastic = ElasticHelper(host, password, "elastic", path_base_map)
# # positve
+8 -7
View File
@@ -23,7 +23,7 @@ host=os.getenv('HOST_160')
password=os.getenv('HOST_160_PASS')
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
# elastic.exportToJsonForAI("output","mj_qa_section", "mj_qa_section.json", {}, ["content", "qanon_title", "ts_date", "other_info.full_path"])
@@ -48,12 +48,13 @@ body = {
}
]
}
},
{
"term":{
"ai_code.label":"فناوری اطلاعات و ارتباطات"
}
}
# ,
# {
# "term":{
# "ai_code.label":"فناوری اطلاعات و ارتباطات"
# }
# }
]
}
}
@@ -66,7 +67,7 @@ body = {
# }
# }
# }
elastic.exportToJsonForAI("output","mj_qa_section", "section_codes_ertabatat.json", body, ["ai_codes", "ai_code", "content", "qanon_title", "qanon_id", "other_info.full_path"], "normal")
# elastic.exportToJsonForAI("output","mj_qa_section", "section_codes_ai.json", body, ["ai_codes", "ai_code"], "dict")
body = {
"sort": [
+1 -1
View File
@@ -167,7 +167,7 @@ password=os.getenv('HOST_160_PASS')
print(host)
# print(password)
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
+1 -1
View File
@@ -242,7 +242,7 @@ password = os.getenv("HOST_160_PASS")
# host=os.getenv('HOST_113')
# password=os.getenv('HOST_113_PASS')
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
#----------------------------------------------------------------
+1 -1
View File
@@ -30,7 +30,7 @@ password=os.getenv('HOST_113_PASS')
print('.... majles_codes_update_steps ......', host)
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
#------------------------------------------------
+1 -1
View File
@@ -176,7 +176,7 @@ if __name__ == "__main__":
print('.... codes_import_from_excel ......', host)
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
path_base_map = "G:/Project2/gateway_php/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)