皖信智能对话 copy
    皖信智能对话 copy
    • 二进制文件
      POST
    • 知识库召回测试
      POST
    • 文件解析接口
      POST
    • 语料库文件添加
      POST
    • 问答库文件添加
      POST
    • 问答库以及语料库内容删除
      POST
    • 工作流运行
      POST
    • 工作流保存接口
      POST
    • 知识库初始化
      POST

      知识库召回测试

      正式环境
      http://121.229.177.64:8088/wanxin_ai/
      正式环境
      http://121.229.177.64:8088/wanxin_ai/
      POST
      /zhixin_agent/knowledge_database/ed076ba6-7c83-47bf-aec3-95b5e58a0105/hit-testing
      知识库建立完后,在找回测试中调用这个接口

      请求参数

      Body 参数application/json
      query
      string 
      必需
      user_id
      string 
      必需
      problem_type
      string 
      必需
      knowledge_type
      string 
      必需
      retrieval_model
      object 
      必需
      search_method
      string 
      必需
      reranking_enable
      boolean 
      必需
      reranking_mode
      string 
      必需
      reranking_model
      object 
      必需
      weights
      object 
      必需
      top_k
      integer 
      必需
      score_threshold_enabled
      boolean 
      必需
      score_threshold
      number 
      必需
      external_retrieval_model
      null 
      必需
      示例
      {
          "query": "指南",
          "user_id": "hongxm",
          "retrieval_model": {
              "search_method": "hybrid_search",
              "reranking_enable": true,
              "reranking_mode": "reranking_model",
              "reranking_model": {
                  "reranking_provider_name": "langgenius/tongyi/tongyi",
                  "reranking_model_name": "gte-rerank"
              },
              "weights": {
                  "weight_type": "customized",
                  "keyword_setting": {
                      "keyword_weight": 0.3
                  },
                  "vector_setting": {
                      "vector_weight": 0.7,
                      "embedding_model_name": "text-embedding-v1",
                      "embedding_provider_name": "langgenius/tongyi/tongyi"
                  }
              },
              "top_k": 3,
              "score_threshold_enabled": false,
              "score_threshold": 0
          },
          "external_retrieval_model": null
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      cURL
      curl --location --request POST 'http://121.229.177.64:8088/wanxin_ai//zhixin_agent/knowledge_database/ed076ba6-7c83-47bf-aec3-95b5e58a0105/hit-testing' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "query": "指南",
          "user_id": "hongxm",
          "retrieval_model": {
              "search_method": "hybrid_search",
              "reranking_enable": true,
              "reranking_mode": "reranking_model",
              "reranking_model": {
                  "reranking_provider_name": "langgenius/tongyi/tongyi",
                  "reranking_model_name": "gte-rerank"
              },
              "weights": {
                  "weight_type": "customized",
                  "keyword_setting": {
                      "keyword_weight": 0.3
                  },
                  "vector_setting": {
                      "vector_weight": 0.7,
                      "embedding_model_name": "text-embedding-v1",
                      "embedding_provider_name": "langgenius/tongyi/tongyi"
                  }
              },
              "top_k": 3,
              "score_threshold_enabled": false,
              "score_threshold": 0
          },
          "external_retrieval_model": null
      }'

      返回响应

      🟢200成功
      application/json
      Body
      query
      object 
      必需
      content
      string 
      必需
      records
      array [object {5}] 
      必需
      segment
      object 
      必需
      child_chunks
      null 
      必需
      score
      number 
      必需
      dataset_id
      string 
      必需
      tsne_position
      null 
      必需
      status
      integer 
      必需
      示例
      {
          "query": {
              "content": "指南"
          },
          "records": [
              {
                  "segment": {
                      "id": "80152c1c-2744-4cea-86fa-679311fed861",
                      "position": 5,
                      "document_id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                      "content": "第十一条 各地设立汽车以旧换新电话咨询热线,及时回应公众诉求,接受社会监督。对发现存在利用不正当手段(包括伪造、变造相关材料虚假交易、串通他人提供虚假信息等)骗取补贴资金等违法行为的,各地有关部门依法依规严肃处理。\n\n第十二条 对买卖、伪造、变造《报废机动车回收证明》,拼装车以及将回收的报废车辆上路行驶或流向社会的,有关部门依据国务院令第715号(《报废机动车回收管理办法》)进行处理。\n\n第十三条 对挪用、骗取补贴资金的单位和个人,有关部门依据国务院令第427号(《财政违法行为处罚处分条例》)及其他有关法规进行处理。\n\n第五章 附则\n\n第十四条 本细则自发布之日起执行。各省级商务主管部门、财政部门可根据本细则并结合本地区实际情况制定汽车以旧换新具体实施细则。\n\n第十五条 本细则由商务部、财政部会同有关部门负责解释。",
                      "sign_content": null,
                      "answer": null,
                      "word_count": 362,
                      "tokens": 346,
                      "keywords": [
                          "伪造",
                          "报废",
                          "以旧换新",
                          "部门",
                          "变造",
                          "本细则",
                          "违法行为",
                          "回收",
                          "国务院令",
                          "骗取"
                      ],
                      "index_node_id": "f612f2a3-9223-40c8-9809-e8278f60cb8f",
                      "index_node_hash": "53b9a8718f24fc2dad6cd4c512c3229fd121abe0cceaa08c768b5b89baf17eb1",
                      "hit_count": 0,
                      "enabled": true,
                      "disabled_at": null,
                      "disabled_by": null,
                      "status": "completed",
                      "created_by": "0001",
                      "created_at": 1745446694,
                      "indexing_at": 1745446694,
                      "completed_at": 1745446697,
                      "error": null,
                      "stopped_at": null,
                      "document": {
                          "id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                          "data_source_type": "upload_file",
                          "name": "汽车以旧换新补贴实施细则.docx",
                          "doc_type": null,
                          "doc_metadata": null
                      }
                  },
                  "child_chunks": null,
                  "score": 0.45448208808346474,
                  "dataset_id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                  "tsne_position": null
              },
              {
                  "segment": {
                      "id": "cf3fffdf-8c70-4b88-9b34-9bb5786147c0",
                      "position": 2,
                      "document_id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                      "content": "第二章 补贴申报、审核和发放\n\n第三条 拟申请汽车以旧换新补贴资金的个人消费者,应于2025年1月10日前,通过登录全国汽车流通信息管理系统网站或“汽车以旧换新”小程序(以下简称汽车以旧换新平台),填报个人身份信息,报废汽车的车辆识别代号、《报废机动车回收证明》和《机动车注销证明》原件照片或扫描件,新车的车辆识别代号、《机动车销售统一发票》和《机动车登记证书》原件照片或扫描件等,向补贴受理地(即《机动车销售统一发票》开具地)提交补贴申请。\n\n上述《报废机动车回收证明》《机动车注销证明》《机动车销售统一发票》《机动车登记证书》,应于本细则印发之日至2024年12月31日期间取得。其中,《报废机动车回收证明》应由有资质的报废机动车回收拆解企业开具。\n\n第四条 各地商务主管部门收到申请材料后,会同财政、公安、工业和信息化等部门按照职能职责进行审核,通过汽车以旧换新平台反馈审核结果。商务部、公安部、工业和信息化部等部门提供报废机动车回收和注销、新车注册登记、新能源新车车型等信息核查比对服务,支持地方高效开展审核工作。",
                      "sign_content": null,
                      "answer": null,
                      "word_count": 461,
                      "tokens": 447,
                      "keywords": [
                          "统一发票",
                          "注销",
                          "报废",
                          "以旧换新",
                          "补贴",
                          "审核",
                          "机动车",
                          "证明",
                          "汽车",
                          "回收"
                      ],
                      "index_node_id": "6e8105b6-0295-486e-9ade-d4bfb73e8726",
                      "index_node_hash": "6869ea9278a20436884b905c746b5940a70659f0bc15a89501a6138042d652fe",
                      "hit_count": 0,
                      "enabled": true,
                      "disabled_at": null,
                      "disabled_by": null,
                      "status": "completed",
                      "created_by": "0001",
                      "created_at": 1745446694,
                      "indexing_at": 1745446694,
                      "completed_at": 1745446697,
                      "error": null,
                      "stopped_at": null,
                      "document": {
                          "id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                          "data_source_type": "upload_file",
                          "name": "汽车以旧换新补贴实施细则.docx",
                          "doc_type": null,
                          "doc_metadata": null
                      }
                  },
                  "child_chunks": null,
                  "score": 0.40614446146587596,
                  "dataset_id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                  "tsne_position": null
              },
              {
                  "segment": {
                      "id": "df57b1ca-4d8b-4b79-9c5b-f8eb73fa8c72",
                      "position": 3,
                      "document_id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                      "content": "申请人提交的信息真实完整,符合本细则要求的,予以审核通过。申请人提交的信息不完整或不清晰无法辨识的,受理地将补正信息要求告知申请人,申请人按要求在本细则明确的申请截止日期前通过原渠道补正有关信息。\n\n第五条 各地商务主管部门及时汇总符合补贴条件的申请人信息,确定补贴金额,并向财政部门提出资金申请。各地财政部门根据商务主管部门提出的资金安排建议,经财政部地方监管局审核同意后,按程序将补贴资金拨付至申请人提供的银行账户。\n\n第三章 补贴资金管理\n\n第六条 汽车以旧换新补贴资金由中央财政和地方财政总体按6:4比例共担,并分地区确定具体分担比例。其中,对东部省份按5:5比例分担,对中部省份按6:4比例分担,对西部省份按7:3比例分担。地方负担的部分,由省级财政部门牵头负责落实到位。\n\n第七条 根据2023年底各地国三及以下排放标准燃油乘用车保有量等情况,财政部向各省份预拨70%补助资金,用于支持地方启动相关工作。政策实施期间,中央和地方根据前述单车补贴标准,对符合条件的汽车报废更新车辆按既定分担比例进行补贴,各地与消费者进行据实结算。",
                      "sign_content": null,
                      "answer": null,
                      "word_count": 470,
                      "tokens": 457,
                      "keywords": [
                          "各地",
                          "信息",
                          "分担",
                          "资金",
                          "补贴",
                          "申请人",
                          "财政部门",
                          "比例",
                          "地方",
                          "省份"
                      ],
                      "index_node_id": "35e1a981-6c7c-4d83-820f-591622092442",
                      "index_node_hash": "0b3d2a655d49622c29615b79066c620308964e2035bb3885c98481b57618a48f",
                      "hit_count": 0,
                      "enabled": true,
                      "disabled_at": null,
                      "disabled_by": null,
                      "status": "completed",
                      "created_by": "0001",
                      "created_at": 1745446694,
                      "indexing_at": 1745446694,
                      "completed_at": 1745446698,
                      "error": null,
                      "stopped_at": null,
                      "document": {
                          "id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                          "data_source_type": "upload_file",
                          "name": "汽车以旧换新补贴实施细则.docx",
                          "doc_type": null,
                          "doc_metadata": null
                      }
                  },
                  "child_chunks": null,
                  "score": 0.3734732219925459,
                  "dataset_id": "41b7f575-51f7-4230-acfb-e7fe57c9077d",
                  "tsne_position": null
              }
          ],
          "status": 200
      }
      修改于 2025-06-18 07:49:22
      上一页
      二进制文件
      下一页
      文件解析接口
      Built with