11.29 优化提示词

This commit is contained in:
zy123 2024-11-29 15:13:54 +08:00
parent 714ab3454d
commit bcffbc9143

View File

@ -27,7 +27,7 @@ def fetch_procurement_reqs(procurement_path, invalid_path):
return DEFAULT_PROCUREMENT_REQS.copy() return DEFAULT_PROCUREMENT_REQS.copy()
try: try:
# processed_filepath = convert_pdf_to_markdown(procurement_path) # 转markdown格式 # processe:d_filepath = convert_pdf_to_markdown(procurement_path) # 转markdown格式
processed_filepath = pdf2txt(procurement_path) # 纯文本提取 processed_filepath = pdf2txt(procurement_path) # 纯文本提取
# 使用 ThreadPoolExecutor 并行处理 get_technical_requirements 和 get_business_requirements # 使用 ThreadPoolExecutor 并行处理 get_technical_requirements 和 get_business_requirements
with concurrent.futures.ThreadPoolExecutor() as executor: with concurrent.futures.ThreadPoolExecutor() as executor: