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-1.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-1.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hurix_ai-1.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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 555e44c9a22d23b76e1f91aa2c06e001efbe1f7a8b204d826492f79114641fd9
MD5 58ae166730d24682e37bfce387861c63
BLAKE2b-256 15718480b0a5385cabd0941c082cf13045b81a6272d558c1a37dce99d6e038e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hurix_ai-1.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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3277009d44fc4862c5c17e4f0c819fbdbecbcd59bd62a581ec55b55bff5c24a
MD5 50477ec7485b61ce5ecf23ccd98fa723
BLAKE2b-256 caeb50be986c0994e88aa851ad9a454dbc923db910ebd4a79be2db11225981bc

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