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.2.0.tar.gz (1.9 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.2.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hurix_ai-2.2.0.tar.gz
Algorithm Hash digest
SHA256 4961453938c8689a31275b25920694ef6f79ac2927370b5558d35827fe17cd59
MD5 296fe7a7c3d1d2d5e77bd86bf1684b53
BLAKE2b-256 7c311d6c90ef494bc891f3f347418216edea7e8380522e41fa646ea9e0382274

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for hurix_ai-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93521593a8723aedf20c339ceee59e1238c8c461fa2fe70d8717f9046c50cb92
MD5 0891c7314733e7234019f84765e93ced
BLAKE2b-256 de07134fa50d9fc5a93395b33d8ae408df4bd24e0e35479b8d69a22dab212d22

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