Skip to main content

SCDL-RAG: Detect and fix RAG hallucinations with 97% recall and 100% precision.

Project description

SCDL-RAG Python SDK

Detect and fix RAG hallucinations.

Install

pip install scdl-rag

Usage

from scdl_rag import Client

client = Client(api_key="sk_live_...")

result = client.detect(
    question="What is RL?",
    answer="nodes called neurons",
    documents=[{"id": "doc1", "content": "RL is about..."}],
)

if result.hallucination_detected:
    print(f"Hallucination found: {result.explanation}")
else:
    print(f"Coherent (score: {result.mu_score})")

API

See https://api.scdl-rag.com/docs for full API reference.

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

scdl_rag-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

scdl_rag-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scdl_rag-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for scdl_rag-1.0.0.tar.gz
Algorithm Hash digest
SHA256 23688fea8b2548b83c24aa0d2876a96651761d96a69a4a64ee5eb6868f70a9d3
MD5 938dbeb4fc3ab6f411b6b4a6aedc033b
BLAKE2b-256 c14072346e293be509c27204e2b577fd5f3fc0313aa6b57dc0733cd394a2ffdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scdl_rag-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.6

File hashes

Hashes for scdl_rag-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc769edadae28aaad2a79007b9030137c12722e63546d3a0c8b42e884e36535a
MD5 68ac52698e6a118ebfbdfd0609e13086
BLAKE2b-256 0166d4684706f3b0de26e84369a7cde1f870d3beb4c04e095cf558aab6d49632

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