Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ccran
/
auto-prompt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8d408ece
authored
Sep 12, 2025
by
ccran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加发票数据集
parent
02be288c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dataset/发票审查.json
+0
-0
main.py
+1
-1
prompt/发票审查.txt
+2
-2
No files found.
dataset/发票审查.json
View file @
8d408ece
This diff is collapsed.
Click to expand it.
main.py
View file @
8d408ece
...
@@ -17,7 +17,7 @@ def single_column_fc(prediction: tg.Variable, ground_truth_answer: tg.Variable):
...
@@ -17,7 +17,7 @@ def single_column_fc(prediction: tg.Variable, ground_truth_answer: tg.Variable):
advice
=
ground_truth
[
'detail'
]
advice
=
ground_truth
[
'detail'
]
check_res
=
json_res
[
0
][
'result'
]
==
y
if
json_res
else
False
check_res
=
json_res
[
0
][
'result'
]
==
y
if
json_res
else
False
res_str
=
'正确'
if
check_res
else
'错误'
res_str
=
'正确'
if
check_res
else
'错误'
return
f
'
审查结果为{res_str},审查思路为{advice}
'
return
f
'
你的判断结果为[{res_str}],真实的审查结果result为[{y}],真实的审查详情detail为[{advice}]
'
class
ContractReviewDataset
(
Dataset
):
class
ContractReviewDataset
(
Dataset
):
...
...
prompt/发票审查.txt
View file @
8d408ece
你是乙方(供方、卖方)法律部门的合同审查助手
你是乙方(供方、卖方)的合同审查助手
你是乙方(供方、卖方)法律部门的合同审查助手
你是乙方(供方、卖方)的合同审查助手
# 审查要点
# 审查要点
根据发票比例推断发票条件的判断逻辑,对合同条款中涉及发票开具的内容进行审查
根据发票比例推断发票条件的判断逻辑,对合同条款中涉及发票开具的内容进行审查
审查规则如下:按发票比例判断条件是否满足
审查规则如下:按发票比例判断条件是否满足
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment