Skip to main content

Hurix AI FactChecker SDK

Project description

Factchecker SDK

Factchecker SDK is a Python package that verifies factual statements in text using multiple verification models. It supports streaming and non-streaming responses to suit different accuracy and speed needs.

Installation

You can install the Factchecker SDK via pip:

pip install hurix-ai

Features

  • Multiple Verification Models:
    • verify_with_chunks
    • verify_with_snippets (Fast but low accuracy)
    • verify_with_snippets_and_chunks
    • verify_with_snippets_and_chunks_and_partial_claude_entailment (Most accurate but slow)
  • Methods:
    • fact_check - Standard fact-checking method.
    • fact_check_streaming - Provides a streaming response.

Usage

from hurix_ai.factchecker import FactChecker

# Initialize the FactChecker object
obj = FactChecker(api_key="xxxxx", base_url='xxxx', model_name='verify_with_snippets')

# Perform fact-checking
res = obj.fact_check("The capital of India is Delhi")
print(res)

Streaming Fact-Checking

for response in obj.fact_check_streaming("The capital of India is Delhi"):
    print(response)

License

This package is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hurix_ai-2.0.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hurix_ai-2.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file hurix_ai-2.0.0.tar.gz.

File metadata

  • Download URL: hurix_ai-2.0.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.8 Linux/6.8.0-1024-aws

File hashes

Hashes for hurix_ai-2.0.0.tar.gz
Algorithm Hash digest
SHA256 adb074240fe5aa439868fe8abb88e3d1281bee1d1c3ecb4094eb45ae4da0c652
MD5 597b13d37ff57ceca9274a4de32d1688
BLAKE2b-256 24a643e98c4e1e6d69438036210290868ad4fabff05bd77279032099415cebb7

See more details on using hashes here.

File details

Details for the file hurix_ai-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: hurix_ai-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.8 Linux/6.8.0-1024-aws

File hashes

Hashes for hurix_ai-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fbcc06f2e50a30ab1e1e54bb725cd6d8e9ca3c385619d1f6288c4fc2dd4ed25
MD5 b2119255a955e961b300f79a88d906e2
BLAKE2b-256 ba7ed95d4bd275141620065b34972da7a62fa67a950e96877e6eb234c0d3507a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page