LONGSHOT AI
  1. 高级功能接口
LONGSHOT AI
  • 验证
  • 功能接口
    • FactGPT
      POST
    • AutoBlog (一键式、原创、SEO 优化博客)
      POST
    • AutoBlog Large(更大、更复杂/专业的内容)
      POST
    • 指令提示
      POST
    • 重述你的内容
      POST
    • 文本扩展
      POST
    • 关键词段落
      POST
    • 根据项目符号列表生成段落
      POST
    • 段落粉碎机
      POST
    • 生成产品文案
      POST
    • 上传文件
      POST
  • 高级功能接口
    • 验证你的文档
      POST
    • 多重声明检测
      POST
    • 多重声明检测与验证
      POST
  1. 高级功能接口

多重声明检测与验证

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/custom/api/v2/detect/verify/claims
此接口使您能够检测和验证内容声明。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/custom/api/v2/detect/verify/claims' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "blog": "<Blog you want to detect claims from>",
  "url": "<URL you want to detect claims from>",
  "blog_headline_topic: "<headline of Blog, or Blog Topic, the more accurate the topic, the better the algorithm in fact checking>"
}'
响应示例响应示例
{
        "status": "Success",
        "fact_check_results": [
          {
            "claim": "The motivations behind people's choice to shop online are diverse, ranging from the convenience it offers to the competitive prices available.",
            "reasoning": "The evidence provided does not contain any readable or understandable text that can be used to verify the statement. The text in the evidence appears to be corrupted or encoded, making it impossible to extract any information from it.",
            "factuality": "Need more information",
            "relevant_links": [
              {
                "fact": "<Fact cited in fact check>",
                "link": "<url to source of fact>",
                "score": 0.1234
              },
              {
                "fact": "<Fact cited in fact check>",
                "link": "<url to source of fact>",
                "score": 0.1234
              }
            ],
            "error": "The evidence provided is unreadable and cannot be used to verify the statement.",
            "correction": "No correction can be provided as the evidence is unreadable."
          }
        ]
      }

请求参数

Header 参数
Content-Type
string 
必需
示例值:
application/json
Authorization
string 
必需
输入授权承载令牌以授权您的 API 请求。
示例值:
Bearer <token>
Body 参数application/json
blog
string 
可选
该输入字段要求用户输入博客以检测声明。
url
string 
可选
该输入字段要求用户输入博客以检测声明。 示例:“https://www.capitalism.com/nerdwallet/”
示例

返回响应

🟢200成功
application/json
Body
status
string 
必需
表明调用是否成功。如果成功则提示成功,否则失败。
fact_check_results
array [object {6}] 
必需
这是一个包含具有以下键的对象的数组: 1. Claim : 显示需要事实检查的声明文本。 2. 事实性:表明主张是​​否属实。 3. 错误:该声明中哪些内容不正确。 4. 更正:需要对权利要求作出的更正。 5. 推理:评估背后的推理。 6. related_links:包含事实、链接和分数的相关来源列表
claim
string 
可选
reasoning
string 
可选
factuality
string 
可选
relevant_links
array [object {3}] 
可选
error
string 
可选
correction
string 
可选
上一页
多重声明检测
Built with