11.29 优化提示词

This commit is contained in:
zy123 2024-11-29 15:16:23 +08:00
parent 6f12bde416
commit d8860c9466

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:
# processe:d_filepath = convert_pdf_to_markdown(procurement_path) # 转markdown格式 # processed_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: