prompt_buyer.go 892 B

1234567891011121314151617181920212223242526
  1. package prompt
  2. import (
  3. "data_ai/ai"
  4. )
  5. // 获取外围抽取字段
  6. func AcquireBuyerInfo(detail string) map[string]interface{} {
  7. content := PromptBuyerText(detail)
  8. zp := ai.PostZhiPuInfo(content)
  9. return zp
  10. }
  11. // 提示词优选 - 提问词补偿不需要限制
  12. func PromptBuyerText(detail string) string {
  13. content := `请根据我提供的正文进行"实体单位"的抽取;
  14. 你在识别"实体单位"的时候,只能返回一个实体单位,不要返回多个实体单位,如果识别不出来,请填写"无";
  15. 请将上述的识别结果、信息分类结果,按照JSON格式输出,
  16. 严格按照json格式
  17. {
  18. "实体单位":"实体单位",
  19. }
  20. 请回答我的问题,不要联想,不要无中生有,不要生成解释,对于尚未确定或未明确的信息请在JSON对应的值填写:无
  21. 正文内容:` + "\n" + detail + "\n结果JSON:"
  22. return content
  23. }