Commit db979b24 authored by alex yao's avatar alex yao

feat:合同信息提取插件

parent 3f3b2975
......@@ -30,7 +30,7 @@ public class ContractExtractionFunction extends AbstractLargeModelFunction {
private final FunctionLLMConfig functionLLMConfig = new FunctionLLMConfig.FunctionLLMConfigBuilder()
.name("contract_extraction")
.parameters(new Parameters("array")
.addProperties("fileUrl", new Properties("string", "文件链接, 合同文件的在线地址"))
.addProperties("file_url", new Properties("string", "文件链接, 合同文件的在线地址"))
.addProperties("key_info", new Properties("string", "关键信息名称, 长度限制20个字符"))
.addProperties("paraphrase_names", new Properties("array", "相似名字段,字符串数组, 可根据相似名精准抽取关键信息, 最多填写3个,每个释义名称长度限制20个字符"))
.addProperties("field_type", new Properties("string", "字段类型字段, 可选项有,时间:time, 金额:amount, 地址:address, 公司:company, 姓名:name, 描述(长文本):long_text_description, 其他:other, 印章:stamp, 分别对应产品段配置的字段类型"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment