llm_codes_import_to_es

This commit is contained in:
hsafaei
2025-09-30 16:40:11 +03:30
parent 8bc0fde102
commit 372251aff7
9 changed files with 402 additions and 170 deletions
-16
View File
@@ -15,22 +15,6 @@ from app.common.general_functions import *
from app.common.text_normalizer import TextNormalizer
from app.common.elastic_helper import ElasticHelper
##--------------------------------
# لازم است این فیلد پرشود تا مجلس بتواند دسترسی تغییر داشته باشد
##------------------------------------
def is_section_empty(section_path):
filtered_keys = ['فصل','موخره','امضاء','عنوان']
if '>' in section_path:
path_parts = section_path.split('>')
for key in filtered_keys:
if key in path_parts[-1]:
return True
else:
for key in filtered_keys:
if key in section_path:
return True
return False
def repair_ai_codes( elastic, index_name_i, index_name_o, file_log) :
body = {}