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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hurix_ai-2.1.0.tar.gz
  • Upload date:
  • Size: 1.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 794b91aab15d57522035220c2a4bea2fb01b93d677b946d62e4bc41c465f5ccc
MD5 4f21ebbc6e16ede855c4bceec24256b2
BLAKE2b-256 b7c257288d2333fa9985a0d7c8a163b8f4ae10ea0782cd30fac06f822ec6eba0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hurix_ai-2.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 996e6a9e3d84388ce34e841e79b903e83b82abd1f446f45be65002218d3184d3
MD5 89ef63c85e51c04662caf0cb4dfa970d
BLAKE2b-256 810157afd12f43dcaac2b10b5dae0fdf4e960f9168400b406166f0fdced93161

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