12.30 废标项
This commit is contained in:
parent
d51b9687bc
commit
cdefd4c7b1
@ -249,13 +249,12 @@ def extract_business_deviation(busi_requirements_dict):
|
|||||||
model_res1 = qianwen_plus(user_query1)
|
model_res1 = qianwen_plus(user_query1)
|
||||||
# print(model_res)
|
# print(model_res)
|
||||||
business_req_deviation = clean_json_string(model_res1)
|
business_req_deviation = clean_json_string(model_res1)
|
||||||
prompt_template2 = """以下文本是项目采购需求的商务要求部分,请你帮我从键值列表中各字符串中提取带星★或带三角▲的要求项,你的返回格式同输入文本格式,外键名为'商务要求带星',键值为字符串列表,其中每个字符串为带星★或带三角▲的要求项。
|
prompt_template2 = """以下文本是项目采购需求的商务要求部分,请你帮我从键值列表中各字符串中提取带星★或带三角▲的要求项。返回结果仅包括一个键名'商务要求带星'及其键值,为字符串列表,其中每个字符串为带星★或带三角▲的要求项。
|
||||||
要求与指南:
|
要求与指南:
|
||||||
1. 每个星★或三角▲要求占据一个字符串。
|
1. 每个星★或三角▲要求占据一个字符串。
|
||||||
2. 若没有带星★或带三角▲的要求项,键值为空列表,即[],无需返回其他说明性描述。
|
2. 若没有带星★或带三角▲的要求项,键值为空列表,即[],无需返回其他说明性描述。
|
||||||
|
3. 特殊情况处理:
|
||||||
特殊情况处理:
|
-对于输入类似于'技术要求中带★条款项不满足的视为无效投标'这种描述带星★或带三角▲的响应情况的,它本身不是带星或带三角的要求,因此不需要添加进字符串列表中;仅需把本身是带★或带三角▲的要求添加进来。
|
||||||
对于输入类似于'技术要求中带★条款项不满足的视为无效投标'这种描述带星★或带三角▲的响应情况的,它本身不是带星或带三角的要求,因此不需要添加进字符串列表中;仅需把本身是带★或带三角▲的要求添加进来。
|
|
||||||
|
|
||||||
### 示例输入如下:
|
### 示例输入如下:
|
||||||
{{
|
{{
|
||||||
@ -276,6 +275,7 @@ def extract_business_deviation(busi_requirements_dict):
|
|||||||
文本内容:{full_text}
|
文本内容:{full_text}
|
||||||
"""
|
"""
|
||||||
user_query2 = prompt_template2.format(full_text=model_res1)
|
user_query2 = prompt_template2.format(full_text=model_res1)
|
||||||
|
# print(user_query2)
|
||||||
model_res2 = qianwen_plus(user_query2)
|
model_res2 = qianwen_plus(user_query2)
|
||||||
business_star_req_deviation = clean_json_string(model_res2)
|
business_star_req_deviation = clean_json_string(model_res2)
|
||||||
|
|
||||||
@ -284,11 +284,11 @@ def extract_business_deviation(busi_requirements_dict):
|
|||||||
def get_tech_star_deviation(tech_string):
|
def get_tech_star_deviation(tech_string):
|
||||||
if not tech_string:
|
if not tech_string:
|
||||||
return {}
|
return {}
|
||||||
prompt_template = """以下输入文本包含采购货物的技术参数要求或采购要求。请从每个键对应的字符串列表中提取带有星★或三角▲的要求项。返回格式应与输入文本格式相同,为JSON格式,每个键名保持不变,键值为包含对应货物、系统或功能模块的带星或带三角要求项的字符串列表。
|
prompt_template = """以下输入文本包含采购货物的技术参数要求或采购要求。请从每个键对应的字符串列表中提取带有星★或三角▲的要求项。返回结果仅为符合要求的 JSON 格式对象,每个键名保持不变,键值为包含对应货物、系统或功能模块的带星或带三角要求项的字符串列表。
|
||||||
要求与指南:
|
要求与指南:
|
||||||
1. 如果某个货物、系统或功能模块下没有带星★或带三角▲的要求项,则不返回该键值对。
|
1. 如果某个货物、系统或功能模块下没有带星★或带三角▲的要求项,则不返回该键值对。
|
||||||
2. 每个带星★或带三角▲的要求项应作为单独的字符串。
|
2. 每个带星★或带三角▲的要求项应作为单独的字符串。
|
||||||
3. 如果所有设备、系统或功能模块中都没有带星★或带三角▲的要求项,则直接返回空字典 {{}},无需返回其他说明性描述。
|
3. 如果输入文本中所有设备、系统或功能模块中都没有带星★或带三角▲的要求项,则直接返回空字典 `{{}}`,无需返回其他说明性描述。
|
||||||
|
|
||||||
### 示例输入1如下:
|
### 示例输入1如下:
|
||||||
{{
|
{{
|
||||||
@ -333,6 +333,7 @@ def get_tech_star_deviation(tech_string):
|
|||||||
输入文本内容:{full_text}
|
输入文本内容:{full_text}
|
||||||
"""
|
"""
|
||||||
user_query = prompt_template.format(full_text=tech_string)
|
user_query = prompt_template.format(full_text=tech_string)
|
||||||
|
# print(user_query)
|
||||||
model_res = qianwen_plus(user_query)
|
model_res = qianwen_plus(user_query)
|
||||||
# print(model_res)
|
# print(model_res)
|
||||||
tech_star_deviation = clean_json_string(model_res)
|
tech_star_deviation = clean_json_string(model_res)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user