Skip to main content

demystify-rag

Python client for the dmstfy-rag API — grounded RAG queries with citations, groundedness scores, honest abstention and SSE streaming. Mirrors @demystify/rag (npm).

from demystify_rag import AsyncRagClient

async with AsyncRagClient(base_url, key=key, product="jarvis") as rag:
    await rag.ingest("kb", doc_key="refund-policy", content=markdown)
    r = await rag.query("kb", "What's the refund window for annual plans?")
    if r.abstained:
        show_gap(r.clarifying_question)
    async for event in rag.query_stream("kb", "..."):
        if event["type"] == "delta":
            print(event["content"], end="")

A synchronous RagClient with the same surface is included. Errors raise RagApiError with .status, .code (branch on this), .type, .request_id.

Metadata

Release files for demystify-rag 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for demystify-rag 0.3.0
File Size Uploaded Provenance Actions
demystify_rag-0.3.0.tar.gz 34.2 kB With provenance Details for demystify_rag-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for demystify-rag 0.3.0
File Interpreter ABI Platform Actions
demystify_rag-0.3.0-py3-none-any.whl Python 3 none any Details for demystify_rag-0.3.0-py3-none-any.whl

Total release size: 39.9 kB

Release files / demystify_rag-0.3.0.tar.gz

Download URL demystify_rag-0.3.0.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4358a5b98984d24a6789fa96026d2c28ffbe5cd0ac570f176a6818308b111319
BLAKE2b-256 checksum
How to use checksums
7acc61c79f868f6cab5118ceb0e7a6edf273e56a24a6b25a5ce166c322d41e73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

Release files / demystify_rag-0.3.0-py3-none-any.whl

Download URL demystify_rag-0.3.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f27066783bbac5c70803cf8b6661eba2d7640463ffa5d9297d550c6b154adf2d
BLAKE2b-256 checksum
How to use checksums
69fd9847826f569bb47781659c6fc3860f3c23401b21182b258ce19a21c940be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

Security for demystify-rag 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for demystify_rag-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page